Bash : Remove old shlvl support.
This commit is contained in:
parent
7c4deb2923
commit
ae63bf2b53
|
@ -14,11 +14,6 @@ in {
|
||||||
export -f $(find_function | tr '\n' ' ')
|
export -f $(find_function | tr '\n' ' ')
|
||||||
export -f find_function
|
export -f find_function
|
||||||
|
|
||||||
# Nested shell indicator support.
|
|
||||||
if [ -z ''${SHLVLMIN} ]; then
|
|
||||||
export SHLVLMIN=''${SHLVL}
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Autostart Sway.
|
# Autostart Sway.
|
||||||
if [[ -z $DISPLAY ]] && [[ "$(tty)" = "/dev/tty1" ]]; then
|
if [[ -z $DISPLAY ]] && [[ "$(tty)" = "/dev/tty1" ]]; then
|
||||||
exec sway
|
exec sway
|
||||||
|
|
|
@ -88,8 +88,6 @@ 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
|
|
||||||
# PS1+="($((''${SHLVL} - ''${SHLVLMIN}))) "
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Show remote connections.
|
# Show remote connections.
|
||||||
|
|
Loading…
Reference in a new issue