diff options
author | Tom Willemse | 2023-07-14 00:27:58 -0700 |
---|---|---|
committer | Tom Willemse | 2023-07-14 00:27:58 -0700 |
commit | 5aa1d0c0e8069bdce3ff938948bfaeeb1e10c834 (patch) | |
tree | 950362ad11f2476cca0b72da7369260f4c7586d1 /oni/home | |
parent | 07fa6f0888b457202e24f80396f58eef6dcc59a3 (diff) | |
download | new-dotfiles-5aa1d0c0e8069bdce3ff938948bfaeeb1e10c834.tar.gz new-dotfiles-5aa1d0c0e8069bdce3ff938948bfaeeb1e10c834.zip |
Add an indication to my zsh prompt that I'm using ‘guix shell’
Diffstat (limited to 'oni/home')
-rw-r--r-- | oni/home/config/common.scm | 3 | ||||
-rw-r--r-- | oni/home/config/zsh/guix-environment.zsh | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/oni/home/config/common.scm b/oni/home/config/common.scm index 71747ad..df1ff49 100644 --- a/oni/home/config/common.scm +++ b/oni/home/config/common.scm @@ -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 diff --git a/oni/home/config/zsh/guix-environment.zsh b/oni/home/config/zsh/guix-environment.zsh new file mode 100644 index 0000000..9adf39f --- /dev/null +++ b/oni/home/config/zsh/guix-environment.zsh @@ -0,0 +1,3 @@ +if [ -n "$GUIX_ENVIRONMENT" ]; then + export PROMPT="[dev] $PROMPT" +fi |