Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.