show current time with seconds
This commit is contained in:
parent
34c9aa95e6
commit
1689f87a31
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ add-zsh-hook preexec ts_preexec
|
|||
function ts_precmd() {
|
||||
if [ $timer ]; then
|
||||
timer_show=$(($SECONDS - $timer))
|
||||
export RPROMPT="%t %F{cyan}${timer_show}s %{$reset_color%}"
|
||||
export RPROMPT="%* %F{cyan}${timer_show}s %{$reset_color%}"
|
||||
unset timer
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue