Add an indication to my zsh prompt that I'm using ‘guix shell’

This commit is contained in:
Tom Willemse 2023-07-14 00:27:58 -07:00
parent 07fa6f0888
commit 5aa1d0c0e8
2 changed files with 5 additions and 1 deletions

View file

@ -109,7 +109,8 @@
"}\n" "}\n"
"preexec_functions+=(horizontal-rule)\n" "preexec_functions+=(horizontal-rule)\n"
"precmd_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 (define home-guile-service
(service home-guile-service-type (service home-guile-service-type

View file

@ -0,0 +1,3 @@
if [ -n "$GUIX_ENVIRONMENT" ]; then
export PROMPT="[dev] $PROMPT"
fi