Skip to content

Instantly share code, notes, and snippets.

@alexspurling
Created February 11, 2015 11:29
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 alexspurling/be3801de58c967dd5419 to your computer and use it in GitHub Desktop.
Save alexspurling/be3801de58c967dd5419 to your computer and use it in GitHub Desktop.
OSX terminal notification for completed builds
#Add an alias for your build commands for example:
alias make='notify make'
alias mvn='notify mvn'
#Install terminal-notifier from: https://github.com/alloy/terminal-notifier
function notify { "$@" && terminal-notifier -sound 'Glass' -title 'Success!' -message "$* run successfully" || terminal-notifier -sound 'Basso' -title 'Failure!' -message "$* run unsuccessfully" ; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment