1
0
Fork 0

show current time with seconds

pull/1515/head
Ali Moeeny 8 years ago
parent 34c9aa95e6
commit 1689f87a31
No known key found for this signature in database
GPG Key ID: 52479F3AC309CB36

@ -37,7 +37,7 @@ add-zsh-hook preexec ts_preexec
function ts_precmd() { function ts_precmd() {
if [ $timer ]; then if [ $timer ]; then
timer_show=$(($SECONDS - $timer)) 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 unset timer
fi fi
} }

Loading…
Cancel
Save