From: Simon Ruderich Date: Wed, 16 Nov 2011 12:37:39 +0000 (+0100) Subject: shell/logout: Always clear the console, independent of $SHLVL. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=dd7857bb9458713038436d8c07640307836850f4;p=config%2Fdotfiles.git shell/logout: Always clear the console, independent of $SHLVL. --- diff --git a/shell/logout b/shell/logout index 10affa1..491f594 100644 --- a/shell/logout +++ b/shell/logout @@ -3,12 +3,11 @@ # When leaving the console clear the screen to increase privacy. Taken from # Debian default bash files and modified. Thanks. -if [ "$SHLVL" = 1 ]; then - if [ -x /usr/bin/clear_console ]; then - /usr/bin/clear_console -q - else - clear - fi + +if [ -x /usr/bin/clear_console ]; then + /usr/bin/clear_console -q +else + clear fi # Make sure sudo rights are removed.