diff --git a/zsh/.config/zsh/config.d/30_prompts.zsh b/zsh/.config/zsh/config.d/30_prompts.zsh index a1c2f48..ce2b0ee 100644 --- a/zsh/.config/zsh/config.d/30_prompts.zsh +++ b/zsh/.config/zsh/config.d/30_prompts.zsh @@ -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