From 942fe9d6de40c0dc3028fc1d762b06124bb1a3b8 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 5 Jan 2012 20:04:09 +0000 Subject: 30087: Christian Höltje: remove any hooks with prompt theme MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Functions/Prompts/promptinit | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Functions') 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 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 -- cgit 1.4.1