Clear console on bash logout for privacy

master
Jordan Atwood 2 years ago
parent fda9d44685
commit 9b65fcb848
Signed by: nightfirecat
GPG Key ID: 615A619C2D73A6DF
  1. 5
      src/.bash_logout

@ -4,3 +4,8 @@
if [ -n "$SSH_AUTH_SOCK" ]; then if [ -n "$SSH_AUTH_SOCK" ]; then
eval "$(ssh-agent -k)" eval "$(ssh-agent -k)"
fi 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

Loading…
Cancel
Save