How I use iTerm2

I use iTerm2 instead of the default MacOS terminal, and here’s how I have it set up:

  • Twee terminal background with MOTD from this project because if I’m going to spend all day looking at a prompt, it should be pretty.

Twee terminal

  • Zsh and Oh My Zsh for really good tab-complete and git status on your prompt.
  • Split panes. I find it really useful to a webserver process log on the left and be able to run tests and other commands in the right.
  • Unlimited scroll buffer. Sometimes I run a really long command and want to paste the output into a file for safekeeping. Burning a little extra RAM is better than realising some vital bit of information has crept off the top of the screen.
  • ⌥ + click anywhere in a command to move your cursor straight there.
  • Bind keys to move between word boundaries, allowing you to skip back and forth within a command at a much higher speed with ⌥ + ←/→. Esc + b and Esc + f will move your cursor left and right, respectively. Update: My colleague informs me you can get these bindings easily by loading the “Natural Text Editing” preset under Profiles -> Keys -> Key Mappings. Neat!

Terminal bindings for skipping to word boundaries

  • Silence terminal bell because I hate it, although I still want an analogue terminal bell.
  • Enable tab icons for running apps.

iTerm2 with tab icons enabled

  (Updated Dec 22, 2023)
Respond to this post via e-mail