Skip to content

Instantly share code, notes, and snippets.

@incanus
Created September 4, 2012 23:28
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save incanus/3628039 to your computer and use it in GitHub Desktop.
Save incanus/3628039 to your computer and use it in GitHub Desktop.
#
# 1. Install https://github.com/alloy/terminal-notifier
#
# 2. Put this in your ~/.bash_profile
#
# 3. Use like this:
# `nwd <some job>`
#
# When the job's done, you will get a notification that, when clicked, takes you to Terminal.app.
#
nwd()
{
$*
terminal-notifier -message "${1} is done" -activate com.apple.Terminal
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment