Fix for add-zsh-hook function definition file not found

This commit is contained in:
github.token 2012-03-09 15:29:10 -05:00
commit c9afbeabfe

View file

@ -28,6 +28,10 @@ function omz_termsupport_preexec {
title "$CMD" "%100>...>$2%<<" title "$CMD" "%100>...>$2%<<"
} }
autoload -U add-zsh-hook #autoload -U add-zsh-hook
add-zsh-hook precmd omz_termsupport_precmd #add-zsh-hook precmd omz_termsupport_precmd
add-zsh-hook preexec omz_termsupport_preexec #add-zsh-hook preexec omz_termsupport_preexec
## Fix for zsh hook compatibility issues
if [ -f "/usr/share/zsh/functions/Zle/add-zsh-hook" ] ; then
autoload -U add-zsh-hook && add-zsh-hook precmd omz_termsupport_precmd && add-zsh-hook preexec omz_termsupport_preexec
fi