diff --git a/src/.bash_logout b/src/.bash_logout index d10d91b..7b1e024 100755 --- a/src/.bash_logout +++ b/src/.bash_logout @@ -4,3 +4,8 @@ if [ -n "$SSH_AUTH_SOCK" ]; then eval "$(ssh-agent -k)" fi + +# when leaving the console, clear the screen to increase privacy +if [ "$SHLVL" = 1 ]; then + [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q +fi