show current time with seconds

This commit is contained in:
Ali Moeeny 2017-05-29 08:46:03 -04:00
parent 34c9aa95e6
commit 1689f87a31
No known key found for this signature in database
GPG key ID: 52479F3AC309CB36

View file

@ -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
}