Reset Command Exec Time

Reset the `cmd_timestamp` immediately after printing to avoid printing erroneous times on subsequent empty prompts.
This commit is contained in:
Kevin Kuhl 2017-05-30 23:56:20 -05:00 committed by GitHub
commit 17f8cd452d

View file

@ -72,6 +72,7 @@ preexec() {
precmd() {
vcs_info # Get version control info before we start outputting stuff
print -P "\n$(repo_information) %F{yellow}$(cmd_exec_time)%f"
unset cmd_timestamp #Reset cmd exec time.
}
# Define prompts