時間がかかるコマンドが終了したときに Beep!

10秒以上時間がかかったら、復帰時に bell.

.zshrc に

precmd() {
  [ $TTYIDLE -gt 10 ] && echo -n ^G
}

(Inspired by zsh その4)