diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2012-01-05 20:04:09 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2012-01-05 20:04:09 +0000 |
| commit | 942fe9d6de40c0dc3028fc1d762b06124bb1a3b8 (patch) | |
| tree | f942924d8ba9ec0c745dc52161c1d1cee83b8d8d /Functions/Prompts | |
| parent | 30084: `zle -T tc func' for zle testing of termcap output (diff) | |
| download | zsh-942fe9d6de40c0dc3028fc1d762b06124bb1a3b8.tar zsh-942fe9d6de40c0dc3028fc1d762b06124bb1a3b8.tar.gz zsh-942fe9d6de40c0dc3028fc1d762b06124bb1a3b8.tar.bz2 zsh-942fe9d6de40c0dc3028fc1d762b06124bb1a3b8.tar.lz zsh-942fe9d6de40c0dc3028fc1d762b06124bb1a3b8.tar.xz zsh-942fe9d6de40c0dc3028fc1d762b06124bb1a3b8.tar.zst zsh-942fe9d6de40c0dc3028fc1d762b06124bb1a3b8.zip | |
30087: Christian Höltje: remove any hooks with prompt theme
Diffstat (limited to 'Functions/Prompts')
| -rw-r--r-- | Functions/Prompts/promptinit | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Functions/Prompts/promptinit b/Functions/Prompts/promptinit index b07eabb1f..66e73a7a5 100644 --- a/Functions/Prompts/promptinit +++ b/Functions/Prompts/promptinit @@ -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 |
