From 748c5894119254a4ead74cb7c85dbbe24c5bc667 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 28 Aug 2025 09:15:36 +0200 Subject: prompt: use GUIX_ENVIRONMENT as well as IN_NIX_SHELL --- zshrc.d/prompt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zshrc.d/prompt') 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" -- cgit v1.2.3