aboutsummaryrefslogtreecommitdiffstats
path: root/_zlogout
blob: 52569f3b68b5b76a078ae8ee0d5d5a45bb47110c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#
# ~/.zlogout
# Executed when a *login* zsh shell exits
#
# Aaron LI
#

# Flush the cached passphrases on logout, but except for SSH connections
if [[ -z ${SSH_CONNECTION} ]]; then
    gpgconf --reload gpg-agent
fi

# Clear console
if which clear >/dev/null 2>&1; then
    clear
elif which tput >/dev/null 2>&1; then
    tput clear
fi

# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=zsh: #