.dotfiles/bash/bash_logout

13 lines
250 B
Bash
Raw Normal View History

2022-04-16 19:54:07 +00:00
# vim: ft=sh
2022-09-05 18:55:36 +00:00
if [ $SSH_TTY ]; then
# Remove socket files
rm SSH_AUTH_SOCK
rm SWAYSOCK
fi
2022-04-16 19:54:07 +00:00
# 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