You ever have the problem where you issue a command, and it lasts longer than a few seconds, so that you tab away to a browser or something, and you lose track of what you were doing?
Put one piece in .bash_profile
and another piece in your home
directory. When a command takes longer than some threshold, this will
beep and try to raise the window (if Terminal.app).
It will also beep on concluding interactive programs like less
or an
editor, which is kind of annoying but eh.