Skip to content

Instantly share code, notes, and snippets.

@vincentchu
Created April 27, 2012 18:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vincentchu/2511441 to your computer and use it in GitHub Desktop.
Save vincentchu/2511441 to your computer and use it in GitHub Desktop.
Growlnotifies you when your long running command is finished
#!/bin/bash
$@
if [ "$?" = "0" ]
then
growlnotify --image /Users/vince/bin/images/doom_succ.png --message "$1" Command Succeeded!
else
growlnotify --image /Users/vince/bin/images/doom_fail.png --message "$1" Command Failed!
fi
## Usage:
# grr [COMMAND]
#
# e.g,: grr ls -al
# grr make
# grr compile_all_the_files
#
# Make sure you replace the image path if you want to use it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment