Skip to content

Instantly share code, notes, and snippets.

@vic
Last active Dec 9, 2016
Embed
What would you like to do?
Display elixir exceptions / mix test / credo as iTerm2 notifications.

Open your iTerm2 preferences, then under Profiles / Advanced / Triggers add some regular expressions for the errors you want to notify. On Action select Post Notification, if the regex has group captures, you can use them as parameters.

FunTip: Under Action select Run Command with parameters: say "\1"

ProTip: mix test --listen-on-stdin will re-run tests when you hit enter. Others like to use the mix_test_watch package, but I prefer not to add another dependency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment