aboutsummaryrefslogtreecommitdiff
path: root/zshrc.d/prompt
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2025-08-28 09:15:36 +0200
committerKarel Kočí <cynerd@email.cz>2025-08-28 09:15:36 +0200
commit748c5894119254a4ead74cb7c85dbbe24c5bc667 (patch)
tree345e0d547063c8d9bb05c0fa1a33166cf830b6b2 /zshrc.d/prompt
parent24654405e2da7cda14dfa5744357f33b6be730c6 (diff)
downloadshellrc-748c5894119254a4ead74cb7c85dbbe24c5bc667.tar.gz
shellrc-748c5894119254a4ead74cb7c85dbbe24c5bc667.tar.bz2
shellrc-748c5894119254a4ead74cb7c85dbbe24c5bc667.zip
prompt: use GUIX_ENVIRONMENT as well as IN_NIX_SHELLHEADmaster
Diffstat (limited to 'zshrc.d/prompt')
-rw-r--r--zshrc.d/prompt2
1 files changed, 1 insertions, 1 deletions
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"