]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
shell/logout: Always clear the console, independent of $SHLVL.
authorSimon Ruderich <simon@ruderich.org>
Wed, 16 Nov 2011 12:37:39 +0000 (13:37 +0100)
committerSimon Ruderich <simon@ruderich.org>
Wed, 16 Nov 2011 12:37:39 +0000 (13:37 +0100)
shell/logout

index 10affa145cea962c1e672fa15f52c6321ca2e5c8..491f594a589bd3eaa263803d5f96662aec31c33f 100644 (file)
@@ -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.