1
Fork 0

zsh: Add space before nix-shell part in ps1

This commit is contained in:
caem 2024-07-15 13:48:57 +02:00
parent c35e1d1578
commit 5cb49bbf5b
Signed by: caem
GPG key ID: 69A830D03203405F

View file

@ -11,9 +11,9 @@ esac
if [ -n "$IN_NIX_SHELL" ]; then
if [ -z "$NIX_SHELL_PACKAGES" ]; then
nix_shell_ps1="%F{red}nix-shell%f"
nix_shell_ps1=" %F{red}nix-shell%f"
else
nix_shell_ps1="%F{red}{ $NIX_SHELL_PACKAGES }%f"
nix_shell_ps1=" %F{red}{ $NIX_SHELL_PACKAGES }%f"
fi
else
nix_shell_ps1=""