Alerts you when long-running commands finally complete.
Install this to get a notification when any command finishes that took longer than ten seconds to finish.
$ sudo apt-get install undistract-me
Don't forget to restart your shell with a 'login' shell
$ git clone git://github.com/jml/undistract-me.git $ . undistract-me/long-running.bash $ notify_when_long_running_commands_finish_install
You're doing some work, and as part of that you need to run a command on the terminal that takes a little while to finish. Perhaps it's your test suite, your build process, or an unusually big data run.
You run the command, watch it for maybe a second and then switch to doing something else—answering email or something more useful and fun than staring at a terminal.
You get so deeply involved in your email that twenty minutes fly by. When you switch back to your terminal the command has finished, but you've got no idea whether it was nineteen seconds ago or nineteen minutes ago.
This happens to me a lot. I'm not prescient enough to predict which commands will take a long time, and I'm not disciplined to add something to the end of each one. If you are like me, then what we both need is something that alerts us whenever long running commands finish.
This is it.
undistract-me is a very simple program. It's almost certainly going to work for you. However, if you do encounter a problem, please let us know about it.
jml on Freenode in the