Created
February 11, 2015 11:29
-
-
Save alexspurling/be3801de58c967dd5419 to your computer and use it in GitHub Desktop.
OSX terminal notification for completed builds
This file contains hidden or 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 an alias for your build commands for example: | |
alias make='notify make' | |
alias mvn='notify mvn' |
This file contains hidden or 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
#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