Do not clear the screen upon logout
This commit is contained in:
parent
a3c8f3da1c
commit
9ae6cebc17
1 changed files with 0 additions and 17 deletions
|
@ -1,18 +1 @@
|
||||||
# This file is sourced by a login shell upon logout
|
# This file is sourced by a login shell upon logout
|
||||||
|
|
||||||
# Clear the screen (if desired) to increase privacy
|
|
||||||
if [ "$SHLVL" = 1 ]; then
|
|
||||||
if [ -x /usr/bin/clear ]; then
|
|
||||||
read -p "Clear screen? " -n 1 -r
|
|
||||||
echo
|
|
||||||
if [[ $REPLY =~ ^[Yy]$ ]]; then
|
|
||||||
/usr/bin/clear
|
|
||||||
fi
|
|
||||||
elif [ -x /usr/bin/clear_console ]; then
|
|
||||||
read -p "Clear screen? " -n 1 -r
|
|
||||||
echo
|
|
||||||
if [[ $REPLY =~ ^[Yy]$ ]]; then
|
|
||||||
/usr/bin/clear_console -q
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
Loading…
Reference in a new issue