Oleg Atamanenko

thoughts about programming

Using iTerm triggers

I want to share one of the cool features which iTerm.app has - triggers. The idea behind triggers is simple - it allows to perform arbitrary action based on the output in console window. For example, it can colorize specified content (based on regular expressions).

Start iTerm, open settings (⌘+,), go to Profiles, then tab Advanced. Click on Edit button in Triggers section.

iTerm Settings

Then you can define your own triggers:

Triggers Configuration

Example output:

Example output

Happy coding!