Skip to content

Instantly share code, notes, and snippets.

@spinscale
Created July 24, 2014 07:07
Show Gist options
  • Save spinscale/33805a950330455adac0 to your computer and use it in GitHub Desktop.
Save spinscale/33805a950330455adac0 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