]>
Commit | Line | Data |
---|---|---|
e4677c6b | 1 | ### cleanup |
2 | # XXX: since .zlogout isn't guaranteed to have been run in the same shell as | |
3 | # our .zprofile was (since we source it in .zshenv for SHLVL=1 among other | |
4 | # situations) we are not guaranteed to clean up our current session's tmp, | |
5 | # but it should be cleared out on next session launch | |
6 | _sev_zcleanup | |
7 | ## unset vars that use our tmp since above will remove them | |
6a32e673 | 8 | [[ XDG_CACHE_HOME = $_sev_tmp/.xdg.cache ]] && unset XDG_CACHE_DIR |
9 | [[ XDG_RUNTIME_DIR = $TMPDIR/.xdg.runtime ]] && unset XDG_RUNTIME_DIR | |
e4677c6b | 10 | ## clean up any remaining sockets from gpg forwarding |
6a32e673 | 11 | [[ -v _GNUPG_SOCK_DEST_BASE ]] && rm -f $_GNUPG_SOCK_DEST_BASE*(=N) |
7ddca96d | 12 | |
c7e3e126 | 13 | if [[ -o interactive ]] { |
14 | echo logout | |
15 | clear | |
16 | } | |
81c3957e | 17 | |
18 | ### load site-specific | |
b341b38a | 19 | if [[ -f ${ZDOTDIR:-~}/.zlogout.local ]] { source ${ZDOTDIR:-~}/.zlogout.local } |