]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - shell/logout
shell/logout: Always clear the console, independent of $SHLVL.
[config/dotfiles.git] / 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.