.dotfiles/bash/bash_logout

13 lines
252 B
Bash
Raw Normal View History

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