]> git.alrj.org Git - zsh.d.git/blobdiff - S10_zshopts
Ensure that psvar is empty for all the precmd.
[zsh.d.git] / S10_zshopts
index d90bec049111d33265bf5a4ba2a4c6da1625eb06..a60363924530ece0e8835430f5521a9a91d241fd 100644 (file)
@@ -12,6 +12,13 @@ typeset -ga preexec_functions
 typeset -ga precmd_functions
 typeset -ga chpwd_functions
 
+# This must be done very early.
+clear_psvar() {
+  psvar=()
+}
+precmd_functions+='clear_psvar'
+
+
 [ -w $zsh_cache ] && HISTFILE=$zsh_cache/history
 
 HISTSIZE=10000              # size of history