Skip to content

Commit

Permalink
fix missing add-zsh-hook in pygmalion.zsh-theme
Browse files Browse the repository at this point in the history
Fix "command not found: add-zsh-hook" since ohmyzsh#3053 removes `autoload -U add-zsh-hook`
  • Loading branch information
clippit authored and ArjenSchwarz committed Sep 16, 2014
1 parent b09b7de commit dc99471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion themes/pygmalion.zsh-theme
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ prompt_setup_pygmalion(){
base_prompt_nocolor=$(echo "$base_prompt" | perl -pe "s/%\{[^}]+\}//g")
post_prompt_nocolor=$(echo "$post_prompt" | perl -pe "s/%\{[^}]+\}//g")

add-zsh-hook precmd prompt_pygmalion_precmd
precmd_functions+=(prompt_pygmalion_precmd)
}

prompt_pygmalion_precmd(){
Expand Down

0 comments on commit dc99471

Please sign in to comment.