Oskar Okuno's Blog

iTerm2 Triggers

22/06/2022

'Supercharge your terminal'

'Code in terminal'

created using craiyon.com

TIL about iTerm2 Triggers which is a super easy way to super charge your terminal. It's a feature that let's you highlight text, create links and much more!

You can find it in the settings here: iTerm2 Settings Screenshot

Highlight IP Address

One thing that I have added is to highligh IP Addresses, which makes it very easy to distinguish addresses when glancing over a log.

Regular Expression: (\b25[0-5]|\b2[0-4][0-9]|\b[01]?[0-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}

High Level Diagram

Look at all those hacker attempts... Now in gold color!

Another nice feature is to add a clickable link to the Jira ticket. For example when you check the git log you can now directly just shift+click and come directly to the Jira ticket in the browser.

Terminal Hacker

created using craiyon.com