undistract-me: terminal job notifications

terminalIt’s quite boring to keep watching the terminal till a long-running command completes. I would rather use the time doing something useful. But how do I know when the command competes? The answer on Ubuntu is a simple utility called undistract-me. It uses notify-osd to update you when a console command finishes.


To install undistract-me on Ubuntu:

$ sudo apt-get install undistract-me


On my system undistract-me did not work out of the box. I added the following in my ~/.bashrc to get it working:

. /usr/share/undistract-me/long-running.bash

By default the utility notifies you with the execution time when a command or task takes more that 10 seconds to complete. You can override it by exporting the following:

// notify if execution time > 5 seconds 

If you don’t want certain commands to be ignored use the following (space separated list):

$ export LONG_RUNNING_IGNORE_LIST=mv cp rsync

On GitHub: undistract-me

2 thoughts on “undistract-me: terminal job notifications”


Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s