diff options
author | Karel Kočí <cynerd@email.cz> | 2025-08-28 09:15:36 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2025-08-28 09:15:36 +0200 |
commit | 748c5894119254a4ead74cb7c85dbbe24c5bc667 (patch) | |
tree | 345e0d547063c8d9bb05c0fa1a33166cf830b6b2 | |
parent | 24654405e2da7cda14dfa5744357f33b6be730c6 (diff) | |
download | shellrc-748c5894119254a4ead74cb7c85dbbe24c5bc667.tar.gz shellrc-748c5894119254a4ead74cb7c85dbbe24c5bc667.tar.bz2 shellrc-748c5894119254a4ead74cb7c85dbbe24c5bc667.zip |
-rw-r--r-- | bashrc.d/prompt | 2 | ||||
-rw-r--r-- | zshrc.d/prompt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bashrc.d/prompt b/bashrc.d/prompt index b039243..5acf584 100644 --- a/bashrc.d/prompt +++ b/bashrc.d/prompt @@ -3,7 +3,7 @@ PS1='$( if [ "$(id -u)" -eq "0" ]; then echo -n "\[\e[1;31m\]\u@\h:\[\e[1;34m\]\W\[\e[1;31m\]\$\[\e[0m\] " -elif [ -n "${IN_NIX_SHELL}" ]; then +elif [ -n "${IN_NIX_SHELL}${GUIX_ENVIRONMENT}" ]; then echo -n "\[\e[1;33m\]\u@\h:\[\e[1;34m\]\W\[\e[1;33m\]\$\[\e[0m\] " else echo -n "\[\e[1;32m\]\u@\h:\[\e[1;34m\]\W\[\e[1;32m\]\$\[\e[0m\] " diff --git a/zshrc.d/prompt b/zshrc.d/prompt index b2e155b..77276c1 100644 --- a/zshrc.d/prompt +++ b/zshrc.d/prompt @@ -5,7 +5,7 @@ command -v prompt >/dev/null && prompt off if [ "$UID" -eq 0 ]; then NCOLOR="red" -elif [ -n "$IN_NIX_SHELL" ]; then +elif [ -n "${IN_NIX_SHELL}${GUIX_ENVIRONMENT}" ]; then NCOLOR="yellow" else NCOLOR="green" |