Created
April 27, 2012 18:10
-
-
Save vincentchu/2511441 to your computer and use it in GitHub Desktop.
Growlnotifies you when your long running command is finished
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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