iTerm2

iTerm2 #

What’s iTerm2 #

Shortcuts #

commanddescription
command + NNew Window
command + TNew Tab
command + returnMaximize Window
command + ( or )Move Tab
shift + command + DSplit Horizontally with Current Profile
command + DSplit Vertically with Current Profile
command + FFind
option + command + FReplace
shift + command + FFind in Files
shift + command + HReplace in Files

How to increase scrollback lines #

  • iTerm2 > Preferences > Profiles
  • Select a profile from Profile Name
  • Click Terminal tab
  • Change Scrollback lines: or check Unlimited scrollback

How to input to multiple consoles at the same time #

  • Shell > Broadcast Input > Broadcast input to All Panes in Current Tab This is a image

How to output console log automatically #

$ mkdir -p /Users/`whoami`/iTerm2/
  • iTerm2 > Preferences > Profiles
  • Select a profile from Profile Name
  • Click Session tab
  • Check Automatically log session input to files in:
  • Check log plain text
  • Input the directory path

How to change the background color of iTerm2 for each environment #

If you change the color schema using shell script #

echo -ne "\033]1337;SetProfile=MyDefault\a"