Skip to content

Instantly share code, notes, and snippets.

@ryanmoon
Forked from spinscale/readme.md
Created June 22, 2016 05:57
Show Gist options
  • Save ryanmoon/8bdd54f7ffac4581bea88b4df4deb571 to your computer and use it in GitHub Desktop.
Save ryanmoon/8bdd54f7ffac4581bea88b4df4deb571 to your computer and use it in GitHub Desktop.
Using iTerm2 notification capabilities

Notification of finished builds in iTerm2

iTerm2 has a neat feature called a trigger, which you can use to notify you about finished maven builds (failure or success) or anything else happening in your console.

Install terminal notifier

brew install terminal-notifier

Add trigger to iTerm2

Go to Profiles -> Advanced -> Triggers -> Edit

Add two new hooks

Regex                Action             Parameters
 
BUILD SUCCESS        Run Commmand       /usr/local/bin/terminal-notifier  -message "MAVEN BUILD SUCCESS"
BUILD FAILURE        Run Commmand       /usr/local/bin/terminal-notifier  -message "MAVEN BUILD FAILURE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment