From: Amand Tihon Date: Wed, 10 Jun 2009 09:49:45 +0000 (+0200) Subject: Ensure that psvar is empty for all the precmd. X-Git-Url: https://git.alrj.org/?p=zsh.d.git;a=commitdiff_plain;h=33f358ecfbcbbea51cb2c95422b63f717f5884c9 Ensure that psvar is empty for all the precmd. --- diff --git a/S10_zshopts b/S10_zshopts index 4f3c2f8..a603639 100644 --- a/S10_zshopts +++ b/S10_zshopts @@ -11,7 +11,12 @@ setopt nobeep 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