2 if [[ $SHLVL == 1 && $GNUPGHOME =~ '.ssh_forward/\d+$' ]] {
5 [[ -o GLOB_ASSIGN ]]; y=$?
7 GNUPGHOME=$GNUPGHOME/../..(:a)
8 [[ $y != 0 ]] && unsetopt GLOB_ASSIGN
9 # clean dir if it exists
11 find $x -mindepth 1 -maxdepth 1 | while read -r y; do
14 rmdir -p $x 2>/dev/null
16 # clean up any remaining sockets from gpg forwarding
17 rm -f $_GNUPG_SOCK_DEST_BASE*(N=)
20 [[ -o interactive ]] && echo logout
23 ### load site-specific
24 if [[ -f ~/.zlogout.local ]] { source ~/.zlogout.local }
26 # vim: set et sts=4 sw=4 ts=8 tw=79 :