.dotfiles/bash/bash_logout

14 lines
285 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
2022-11-08 02:44:37 +00:00
rm $SSH_AUTH_SOCK
rm $HOME/.spool/ssh-agent.env
rm $SWAYSOCK
2022-09-05 18:55:36 +00:00
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