X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=shell%2Flogout;h=1a87b04be282ba842d60e5ed5a0b42f362a13117;hb=a6cb81e7d8e1c050de67178532c938c3e5c11ffe;hp=069603dbd8eb260eba2d530218a0b6bc7158684c;hpb=a66f040ebf67a9daf18ff7e761de8e306156a783;p=config%2Fdotfiles.git diff --git a/shell/logout b/shell/logout index 069603d..1a87b04 100644 --- a/shell/logout +++ b/shell/logout @@ -2,9 +2,13 @@ # 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 # vim: ft=sh