summaryrefslogtreecommitdiff
path: root/lib/termsupport.zsh
diff options
context:
space:
mode:
authorAaron N. Brock <AaronNBrock@gmail.com>2019-11-22 10:40:37 -0500
committerGitHub <noreply@github.com>2019-11-22 10:40:37 -0500
commit420e9d789a26223df9dd7df7625daf032a3f5083 (patch)
tree0ccfcd55671fd4d68b61a91188c984563384ee30 /lib/termsupport.zsh
parent5722677884e85ae910daab4b4624745af74540e6 (diff)
parent76d6b0256398ad1becbc304a78f51bbacfee50e5 (diff)
downloadzsh-420e9d789a26223df9dd7df7625daf032a3f5083.tar.gz
zsh-420e9d789a26223df9dd7df7625daf032a3f5083.tar.bz2
zsh-420e9d789a26223df9dd7df7625daf032a3f5083.zip
Merge branch 'master' into colorize-chroma-support
Diffstat (limited to 'lib/termsupport.zsh')
-rw-r--r--lib/termsupport.zsh7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh
index aa14f3f07..f5e367fcb 100644
--- a/lib/termsupport.zsh
+++ b/lib/termsupport.zsh
@@ -75,8 +75,9 @@ function omz_termsupport_preexec {
title '$CMD' '%100>...>$LINE%<<'
}
-precmd_functions+=(omz_termsupport_precmd)
-preexec_functions+=(omz_termsupport_preexec)
+autoload -U add-zsh-hook
+add-zsh-hook precmd omz_termsupport_precmd
+add-zsh-hook preexec omz_termsupport_preexec
# Keep Apple Terminal.app's current working directory updated
@@ -99,7 +100,7 @@ if [[ "$TERM_PROGRAM" == "Apple_Terminal" ]] && [[ -z "$INSIDE_EMACS" ]]; then
}
# Use a precmd hook instead of a chpwd hook to avoid contaminating output
- precmd_functions+=(update_terminalapp_cwd)
+ add-zsh-hook precmd update_terminalapp_cwd
# Run once to get initial cwd set
update_terminalapp_cwd
fi