]> git.sev.monster Git - dotfiles.git/blobdiff - base/.zlogout
zprofile: always prefer user bin dirs
[dotfiles.git] / base / .zlogout
index 249979ee5d2095864830abbc61c25ac4f768df74..64591b62260774a4f336145636115692451dc1fb 100644 (file)
@@ -1,2 +1,20 @@
-echo logout
-clear
+### cleanup
+# XXX: since .zlogout isn't guaranteed to have been run in the same shell as
+#      our .zprofile was (since we source it in .zshenv for SHLVL=1 among other
+#      situations) we are not guaranteed to clean up our current session's tmp,
+#      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
+## clean up any remaining sockets from gpg forwarding
+[[ -v _GNUPG_SOCK_DEST_BASE ]] && rm -f $_GNUPG_SOCK_DEST_BASE*(N=)
+
+if [[ -o interactive ]] {
+    echo logout
+    clear
+}
+
+### load site-specific
+if [[ -f ~/.zlogout.local ]] { source ~/.zlogout.local }
+
+# vim: et sts=4 sw=4 ts=8 tw=79
This page took 0.048872 seconds and 4 git commands to generate.