Bash : Remove old shlvl support.

This commit is contained in:
Dmitry Voronin 2024-10-08 14:39:12 +03:00
parent 7c4deb2923
commit ae63bf2b53
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
2 changed files with 0 additions and 7 deletions

View file

@ -14,11 +14,6 @@ in {
export -f $(find_function | tr '\n' ' ')
export -f find_function
# Nested shell indicator support.
if [ -z ''${SHLVLMIN} ]; then
export SHLVLMIN=''${SHLVL}
fi
# Autostart Sway.
if [[ -z $DISPLAY ]] && [[ "$(tty)" = "/dev/tty1" ]]; then
exec sway

View file

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