summaryrefslogtreecommitdiff
path: root/plugins/timer/timer.plugin.zsh
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2019-11-21 09:04:33 -0700
committerTuowen Zhao <ztuowen@gmail.com>2019-11-21 09:04:33 -0700
commit9c851a9b820a70b8d23dee0b51220d009e749cec (patch)
treec753688ce9392dc24043cb2f3072d0fec9faab7c /plugins/timer/timer.plugin.zsh
parent1ffd2849fc056dced0c80a9ed8905f29ff9827a5 (diff)
parent1c98b9cc38d34647f1d6357919a0f4e1d5ebd4cd (diff)
downloadzsh-9c851a9b820a70b8d23dee0b51220d009e749cec.tar.gz
zsh-9c851a9b820a70b8d23dee0b51220d009e749cec.tar.bz2
zsh-9c851a9b820a70b8d23dee0b51220d009e749cec.zip
Merge branch 'master' of https://github.com/robbyrussell/oh-my-zsh
Diffstat (limited to 'plugins/timer/timer.plugin.zsh')
-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