20 lines
495 B
Bash
20 lines
495 B
Bash
# vim: ft=sh
|
|
|
|
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
|
|
|
|
if [ -f "/run/.containerenv" ] && grep -oP "(?<=name=\")[^\";]+" /run/.containerenv; then
|
|
source $HOME/.dotfiles/bash/bash_logout.distrobox
|
|
else
|
|
source $HOME/.dotfiles/bash/bash_logout.host
|
|
fi
|