Skip to content

Commit

Permalink
fixed bug with empty command line input
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmut Demir authored and TomfromBerlin committed Jan 14, 2024
1 parent 2e80f6d commit d119b5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd-time.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d119b5f

Please sign in to comment.