X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/8d4a98e19ec40334ed8e8f2ce4e5a9f094bdbcaf..196f1d13eb24798b320b42c6f96e2801b9a40f25:/etc/zsh/.zlogout?ds=sidebyside diff --git a/etc/zsh/.zlogout b/etc/zsh/.zlogout index 1ede4c5..cac7939 100644 --- a/etc/zsh/.zlogout +++ b/etc/zsh/.zlogout @@ -5,9 +5,10 @@ # but it should be cleared out on next session launch _sev_zcleanup ## unset vars that use our tmp since above will remove them -unset XDG_CACHE_HOME XDG_RUNTIME_DIR +[[ XDG_CACHE_HOME = $_sev_tmp/.xdg.cache ]] && unset XDG_CACHE_DIR +[[ XDG_RUNTIME_DIR = $TMPDIR/.xdg.runtime ]] && unset XDG_RUNTIME_DIR ## clean up any remaining sockets from gpg forwarding -[[ -v _GNUPG_SOCK_DEST_BASE ]] && rm -f $_GNUPG_SOCK_DEST_BASE*(N=) +[[ -v _GNUPG_SOCK_DEST_BASE ]] && rm -f $_GNUPG_SOCK_DEST_BASE*(=N) if [[ -o interactive ]] { echo logout @@ -16,5 +17,3 @@ if [[ -o interactive ]] { ### load site-specific if [[ -f ${ZDOTDIR:-~}/.zlogout.local ]] { source ${ZDOTDIR:-~}/.zlogout.local } - -# vim: et sts=4 sw=4 ts=8 tw=79