.dotfiles/bash/bash_logout.host

12 lines
271 B
Bash
Raw Normal View History

2022-12-12 19:48:42 +00:00
if [ ! $SSH_TTY ]; then
# Remove socket files
rm $SSH_AUTH_SOCK
rm $HOME/.spool/ssh-agent.env
rm $SWAYSOCK
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