Skip to content

Instantly share code, notes, and snippets.

@mrjabba
Created February 26, 2011 01:35
Show Gist options
  • Save mrjabba/844831 to your computer and use it in GitHub Desktop.
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
#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