X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/47c723ba9bb8f59494ef6e6a9dd89e8d5b9f39e8..45e43e1fd12c19728d53af61feadb1ab9e8d713f:/.zsh/zlogout/00-clear_sudo_cache?ds=sidebyside diff --git a/.zsh/zlogout/00-clear_sudo_cache b/.zsh/zlogout/00-clear_sudo_cache new file mode 100644 index 0000000..2ce09dd --- /dev/null +++ b/.zsh/zlogout/00-clear_sudo_cache @@ -0,0 +1,12 @@ +# +# Invalidates any existing sudo sessions +# +# Copyright © 1994–2017 martin f. krafft +# Released under the terms of the Artistic Licence 2.0 +# +# Source repository: git://git.madduck.net/etc/zsh.git +# + +sudo -K 2>/dev/null || : + +# vim:ft=zsh