.dotfiles/bash/bash_logout.host

14 lines
311 B
Bash
Raw Normal View History

# vim: ft=sh
if [ ! "$SSH_TTY" ]; then
2023-01-06 18:57:26 +00:00
# Remove socket files
rm "$SSH_AUTH_SOCK"
2024-03-08 21:23:54 +00:00
rm "$HOME/.local/state/ssh-agent.env"
rm "$SWAYSOCK"
2022-12-12 19:48:42 +00:00
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