Skip to content

Instantly share code, notes, and snippets.

@tatosjb
Last active October 7, 2019 17:40
Show Gist options
  • Save tatosjb/30a86d3fad5eed4917453599aaeea152 to your computer and use it in GitHub Desktop.
Save tatosjb/30a86d3fad5eed4917453599aaeea152 to your computer and use it in GitHub Desktop.
iTterm2 > Preferences > Profiles > Advanced > Triggers [Edit]
install https://github.com/julienXX/terminal-notifier
(Alternatively, you can use the native option using only \1 on Parameters field)
Expressão: PASS\s*.*\/(.*\/.*\/.*)\/.*js
Action: Run command
Parameters: $HOME/.asdf/shims/terminal-notifier -title "✅ JEST" -message "\1"
Instant: True
Expressão: FAIL\s*.*\/(.*\/.*\/.*)\/.*js
Action: Run command
Parameters: $HOME/.asdf/shims/terminal-notifier -title "❌ JEST" -message "\1"
Instant: True
Expressão: ● .*\s*›\s*([aA-zZ\s]*$)
Action: Run command
Parameters: $HOME/.asdf/shims/terminal-notifier -title "❌ JEST" -message "\1"
Instant: True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment