Add an indication to my zsh prompt that I'm using ‘guix shell’
This commit is contained in:
parent
07fa6f0888
commit
5aa1d0c0e8
2 changed files with 5 additions and 1 deletions
|
@ -109,7 +109,8 @@
|
|||
"}\n"
|
||||
"preexec_functions+=(horizontal-rule)\n"
|
||||
"precmd_functions+=(horizontal-rule)\n"
|
||||
"PROMPT=\"%T \\$(spwd) %B%(?.%F{2}.%F{1}[%?])>%b%f \""))))))
|
||||
"PROMPT=\"%T \\$(spwd) %B%(?.%F{2}.%F{1}[%?])>%b%f \"")
|
||||
(local-file "zsh/guix-environment.zsh"))))))
|
||||
|
||||
(define home-guile-service
|
||||
(service home-guile-service-type
|
||||
|
|
3
oni/home/config/zsh/guix-environment.zsh
Normal file
3
oni/home/config/zsh/guix-environment.zsh
Normal file
|
@ -0,0 +1,3 @@
|
|||
if [ -n "$GUIX_ENVIRONMENT" ]; then
|
||||
export PROMPT="[dev] $PROMPT"
|
||||
fi
|
Loading…
Reference in a new issue