zsh: bell when a long command finishes
This commit is contained in:
parent
367d6764d0
commit
d8802346ea
1 changed files with 5 additions and 0 deletions
|
|
@ -77,6 +77,11 @@ function build_rprompt {
|
|||
timer_show=$(printf '%.*f\n' 3 $timer_show)
|
||||
RPROMPT="took %B%F{cyan}${timer_show}s%f%b, $RPROMPT"
|
||||
fi
|
||||
# if the command took a *really* long time, play a bell when it's
|
||||
# done
|
||||
if [[ $(($now - $rprompt_exec_timer)) > 15 ]]; then
|
||||
tput bel
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue