From c78f18c942a50ac399271c453ed03e4164f3289e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vili=20Sinerv=C3=A4?= Date: Sun, 1 Jun 2025 19:05:43 +0300 Subject: [PATCH] Fix nix shell indicator --- shared/base.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/base.nix b/shared/base.nix index 6e5ba7a..2ee167f 100644 --- a/shared/base.nix +++ b/shared/base.nix @@ -49,9 +49,9 @@ ZSH_TMUX_CONFIG=/etc/tmux.conf ''; promptInit = '' - if [ "$SHLVL" "!= 1" ]; then + if [ "$SHLVL" != 1 ]; then setopt PROMPT_SUBST - RPROMPT+='[depth-$\{SHLVL\}]' + RPROMPT+='[depth-''${SHLVL}]' fi ''; };