summaryrefslogtreecommitdiff
path: root/plugins/timer
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 /plugins/timer
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 'plugins/timer')
-rw-r--r--plugins/timer/timer.plugin.zsh5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/timer/timer.plugin.zsh b/plugins/timer/timer.plugin.zsh
index 231134e7d..728377c5c 100644
--- a/plugins/timer/timer.plugin.zsh
+++ b/plugins/timer/timer.plugin.zsh
@@ -25,5 +25,6 @@ __timer_display_timer_precmd() {
fi
}
-preexec_functions+=(__timer_save_time_preexec)
-precmd_functions+=(__timer_display_timer_precmd)
+autoload -U add-zsh-hook
+add-zsh-hook preexec __timer_save_time_preexec
+add-zsh-hook precmd __timer_display_timer_precmd