diff --git a/cmd-time.zsh b/cmd-time.zsh index 45dcdf5..543aa2e 100644 --- a/cmd-time.zsh +++ b/cmd-time.zsh @@ -38,6 +38,7 @@ _cmd_time_preexec() { export timer_show } _cmd_time_precmd() { + timer_show="" [[ $timer ]] && timer_show=$(($SECONDS - $timer)) export timer_show && zsh_cmd_time unset timer