mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Fix for add-zsh-hook function definition file not found
This commit is contained in:
parent
e854b58eb8
commit
c9afbeabfe
1 changed files with 7 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue