Skip to content

Instantly share code, notes, and snippets.

@incanus
Created October 24, 2013 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save incanus/7143703 to your computer and use it in GitHub Desktop.
Save incanus/7143703 to your computer and use it in GitHub Desktop.
gwd()
{
$*
growlnotify "${1} is done" -m '…' -s
}
bwd()
{
$*
printf \\a
}
nwd()
{
$*
terminal-notifier -message "\`${1}\` is done" -activate com.apple.Terminal -sender com.apple.Terminal
}
@incanus
Copy link
Author

incanus commented Oct 25, 2013

Use this like so:

nwd <some long-running shell task>

Then you get a Notification Center alert when it completes. If you click on it, Terminal activates.

@incanus
Copy link
Author

incanus commented Nov 4, 2013

Growl when done, beep when done, and notify when done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment