You can then start sessions with these profiles to create a window arrangement and hit Command-Shift-S to save it. These profiles should now show up in iTerm2 as dynamic profiles. Click the + button to add a new rule and set the Regular Expression to.In your iTerm2 Preferences, go to Profiles -> Advanced -> Smart Selection -> Edit.To make Command-clicking on a commit hash open it in Github, do the following:
Profiles may be changed at runtime by editing one or more plist files (formatted as JSON, XML, or in binary). My friend, Jon Kinney, was showing me how hes able to jump into dev mode with his server, Rails console, database console, test suite and Vim all running. Here are a couple of examples: Open commits on Github From iTerm2 0923 you can use Dynamic Profiles as stated in the documentation page: Dynamic Profiles is a feature that allows you to store your profiles in a file outside the usual macOS preferences database. You can make iTerm2 recognize arbitrary ids and take custom actions using them when they are Command-clicked via Smart Selections.
For example, you may want to open commit hashes or PRs on Github with a single click. This usually involves copying and pasting an identifier into a URL and opening that in your browser. Had a look at iterm2 for the first time Specifically, created groups by utilizing profiles and window arrangements.References. If you work in a large codebase, chances are you often need to open commits on Github, or revisions in Phabricator or tickets in your in-house bug tracker. ITerm2 has a lot of little-known features that can make development much easier.