Skip to content

Instantly share code, notes, and snippets.

@vic
Last active December 9, 2016 21:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vic/e5239177c9264462ccfd04b02a659c6d to your computer and use it in GitHub Desktop.
Save vic/e5239177c9264462ccfd04b02a659c6d to your computer and use it in GitHub Desktop.
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