be578d9e7a7fcd46d769411974fcd653acde59c3

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #3053 from jingweno/patch-1

Fix missing add-zsh-hook

Diff

 1diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh
 2index 9c0a430fb9bc676fec0810822de552c655687894..9d668160310c53516cf81d0366d96a3cd3f8d285 100644
 3--- a/lib/termsupport.zsh
 4+++ b/lib/termsupport.zsh
 5@@ -34,6 +34,5 @@ function omz_termsupport_preexec {
 6   title '$CMD' '%100>...>$LINE%<<'
 7 }
 8 
 9-autoload -U add-zsh-hook
10-add-zsh-hook precmd  omz_termsupport_precmd
11-add-zsh-hook preexec omz_termsupport_preexec
12+precmd_functions+=(omz_termsupport_precmd)
13+preexec_functions+=(omz_termsupport_preexec)