10 -> 1 in SHLVL check.
This commit is contained in:
parent
e0a7007694
commit
030b86eb84
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash - not strictly necessary, but helps nano with syntax highlighting.
|
#!/bin/bash - not strictly necessary, but helps nano with syntax highlighting.
|
||||||
|
|
||||||
# Clear the screen/console on logout.
|
# Clear the screen/console on logout.
|
||||||
if (( $SHLVL == 10 )); then
|
if (( $SHLVL == 1 )); then
|
||||||
if [[ -x /usr/bin/clear_console ]]; then
|
if [[ -x /usr/bin/clear_console ]]; then
|
||||||
/usr/bin/clear_console -q
|
/usr/bin/clear_console -q
|
||||||
elif [[ -x /usr/bin/clear ]]; then
|
elif [[ -x /usr/bin/clear ]]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue