PS1 : Disable SHLVL.

This commit is contained in:
Dmitry Voronin 2024-09-30 14:07:50 +03:00
parent fa2ad42ecf
commit cb9fc521ac
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -88,8 +88,8 @@ in {
# Show nix shell name or shell depth. # Show nix shell name or shell depth.
if [ -n "''${SHELL_NAME}" ]; then if [ -n "''${SHELL_NAME}" ]; then
PS1+="''${SHELL_NAME} " PS1+="''${SHELL_NAME} "
elif [[ "''${SHLVL}" -gt "''${SHLVLMIN}" ]]; then # elif [[ "''${SHLVL}" -gt "''${SHLVLMIN}" ]]; then
PS1+="($((''${SHLVL} - ''${SHLVLMIN}))) " # PS1+="($((''${SHLVL} - ''${SHLVLMIN}))) "
fi fi
# Show remote connections. # Show remote connections.