1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-26 04:30:27 +01:00

30087: Christian Höltje: remove any hooks with prompt theme

This commit is contained in:
Peter Stephenson 2012-01-05 20:04:09 +00:00
parent 9b923cccea
commit 942fe9d6de
2 changed files with 8 additions and 3 deletions

View file

@ -155,8 +155,10 @@ Use prompt -h <theme> for help on specific themes.'
fi
# Reset some commonly altered bits to the default
add-zsh-hook -D precmd "prompt_*_precmd"
add-zsh-hook -D preexec "prompt_*_preexec"
local hook
for hook in chpwd precmd preexec periodic zshaddhistory zshexit; do
add-zsh-hook -D "${hook}" "prompt_*_${hook}"
done
set -A zle_highlight ${zle_highlight:#default:*}
(( ${#zle_highlight} )) || unset zle_highlight