blob: 79fc8fd9a584201b4cd8a7cde9f24ab66eed4cea (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
 | #
# ~/.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
    gpgconf --kill 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: #
 |