X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=shell%2Flogout;h=93135ee08122c647fe933e3bca93b9ca48428ed4;hb=f1ed9c1507ccf6b8799062c46f852f1919c390d1;hp=069603dbd8eb260eba2d530218a0b6bc7158684c;hpb=a66f040ebf67a9daf18ff7e761de8e306156a783;p=config%2Fdotfiles.git diff --git a/shell/logout b/shell/logout index 069603d..93135ee 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 + # vim: ft=sh