Created
February 26, 2011 01:35
-
-
Save mrjabba/844831 to your computer and use it in GitHub Desktop.
bash alias and function to notify me when the local build is done
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
#Add this to your .bashrc file in Ubuntu. Make sure you have the right libs | |
alias not='notify-send "Build done in DIR: $PWD"' | |
#bd a function to run an ant target AND be notified about it. | |
function bd { | |
if [ -z "$1" ]; then | |
ant publish; | |
notify-send "Build done for target (publish) in DIR: $PWD" | |
else | |
ant $1 $2; | |
notify-send "Build done for target ($1) in DIR: $PWD" | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment