]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - shell/logout
shell/aliases: Correctly use "$@" instead of $* for arguments.
[config/dotfiles.git] / shell / logout
index 069603dbd8eb260eba2d530218a0b6bc7158684c..10affa145cea962c1e672fa15f52c6321ca2e5c8 100644 (file)
@@ -2,9 +2,16 @@
 
 
 # When leaving the console clear the screen to increase privacy. Taken from
-# Debian default bash files. Thanks.
+# Debian default bash files and modified. Thanks.
 if [ "$SHLVL" = 1 ]; then
-    [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
+    if [ -x /usr/bin/clear_console ]; then
+        /usr/bin/clear_console -q
+    else
+        clear
+    fi
 fi
 
+# Make sure sudo rights are removed.
+sudo -k > /dev/null 2>&1
+
 # vim: ft=sh