X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=shell%2Flogout;h=10affa145cea962c1e672fa15f52c6321ca2e5c8;hb=9eb125f460f59b7c1067ae5142fc34393fd99080;hp=069603dbd8eb260eba2d530218a0b6bc7158684c;hpb=a66f040ebf67a9daf18ff7e761de8e306156a783;p=config%2Fdotfiles.git diff --git a/shell/logout b/shell/logout index 069603d..10affa1 100644 --- a/shell/logout +++ b/shell/logout @@ -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