add nix-chroot to prompt

This commit is contained in:
2021-09-21 10:25:15 +02:00
parent ba4c8ede0d
commit 21f1829195

View File

@@ -71,7 +71,13 @@ else
TOOLBOX="" TOOLBOX=""
fi fi
PROMPT="${TOOLBOX}(%M) %~ %{$fg[red]%}%(#~#~$)%{$reset_color%} " if [[ "$NIX_PATH" && "$NIX_PROFILES" && "$NIX_CONF_DIR" ]]; then
NIX_CHROOT="%F{4}❄%f "
else
NIX_CHROOT=""
fi
PROMPT="${NIX_CHROOT}${TOOLBOX}(%M) %~ %{$fg[red]%}%(#~#~$)%{$reset_color%} "
RPROMPT="\$vcs_info_msg_0_" RPROMPT="\$vcs_info_msg_0_"
precmd () { precmd () {