9c1255d358fa98397ce20370fa3843199c663990

Author
Letian Zhang <zlthooray@gmail.com>
Committer
Letian Zhang <zlthooray@gmail.com>
Date

Message

fix missing add-zsh-hook in pygmalion.zsh-theme

Fix "command not found: add-zsh-hook" since #3053 removes `autoload -U add-zsh-hook`

Diff

 1diff --git a/themes/pygmalion.zsh-theme b/themes/pygmalion.zsh-theme
 2index 654e0fc37666e21df2bcae24d8fe04417cd7d857..5f5fe7f9aea113baa33f7979cb18d505bc6b66ac 100644
 3--- a/themes/pygmalion.zsh-theme
 4+++ b/themes/pygmalion.zsh-theme
 5@@ -12,7 +12,7 @@ prompt_setup_pygmalion(){
 6   base_prompt_nocolor=$(echo "$base_prompt" | perl -pe "s/%\{[^}]+\}//g")
 7   post_prompt_nocolor=$(echo "$post_prompt" | perl -pe "s/%\{[^}]+\}//g")
 8 
 9-  add-zsh-hook precmd prompt_pygmalion_precmd
10+  precmd_functions+=(prompt_pygmalion_precmd)
11 }
12 
13 prompt_pygmalion_precmd(){