#developers #osx

Ever leave a process running on your terminal (e.g. compiling (http://xkcd.com/303/)) only to alt-tab to read some mail, etc. then forget to check on it, and in the process accidentally waste time?

It might be obvious, but I made a simple shell variable called $DONE which just calls growlnotify with the message "Done", which you can append to the end of a command that takes a while, e.g.:

# ./configure && make && make install ; $DONE

And in your .bashrc, put in:

export DONE="growlnotify -m Done"

+David Turnbull suggested a way to hook into the shell so it automatically detects if a process takes 5 seconds or more, and if so, run the growlnotify command when the command finishes.

Any ideas on how to do this?
Shared publiclyView activity