10 -> 1 in SHLVL check.

This commit is contained in:
Darren 'Tadgy' Austin 2019-07-03 18:17:38 +01:00
commit 030b86eb84

View file

@ -1,7 +1,7 @@
#!/bin/bash - not strictly necessary, but helps nano with syntax highlighting.
# Clear the screen/console on logout.
if (( $SHLVL == 10 )); then
if (( $SHLVL == 1 )); then
if [[ -x /usr/bin/clear_console ]]; then
/usr/bin/clear_console -q
elif [[ -x /usr/bin/clear ]]; then