]> git.alrj.org Git - zsh.d.git/commitdiff
Ensure that psvar is empty for all the precmd.
authorAmand Tihon <amand.tihon@iba-group.com>
Wed, 10 Jun 2009 09:49:45 +0000 (11:49 +0200)
committerAmand Tihon <amand.tihon@iba-group.com>
Wed, 10 Jun 2009 09:49:45 +0000 (11:49 +0200)
S10_zshopts

index 4f3c2f8486271c96627588cf64462b6b52ca3cb0..a60363924530ece0e8835430f5521a9a91d241fd 100644 (file)
@@ -11,7 +11,12 @@ setopt nobeep
 typeset -ga preexec_functions
 typeset -ga precmd_functions
 typeset -ga chpwd_functions
 typeset -ga preexec_functions
 typeset -ga precmd_functions
 typeset -ga chpwd_functions
-psvar=()
+
+# This must be done very early.
+clear_psvar() {
+  psvar=()
+}
+precmd_functions+='clear_psvar'
 
 
 [ -w $zsh_cache ] && HISTFILE=$zsh_cache/history
 
 
 [ -w $zsh_cache ] && HISTFILE=$zsh_cache/history