mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-08 04:34:00 +02:00
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:
parent
291e96dcd0
commit
17f8cd452d
1 changed files with 1 additions and 0 deletions
|
|
@ -72,6 +72,7 @@ preexec() {
|
||||||
precmd() {
|
precmd() {
|
||||||
vcs_info # Get version control info before we start outputting stuff
|
vcs_info # Get version control info before we start outputting stuff
|
||||||
print -P "\n$(repo_information) %F{yellow}$(cmd_exec_time)%f"
|
print -P "\n$(repo_information) %F{yellow}$(cmd_exec_time)%f"
|
||||||
|
unset cmd_timestamp #Reset cmd exec time.
|
||||||
}
|
}
|
||||||
|
|
||||||
# Define prompts
|
# Define prompts
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue