Description
Deep integration with iTerm2 terminal emulator on macOS, offering advanced functionality for tab management, window control, and shell integration.
GitHub
Essential Commands
iterm2_profile [profile_name]- Change current iTerm2 profiletab- Open current directory in new tabsplit_tab- Split current tab horizontallyvsplit_tab- Split current tab vertically
Advanced Commands
iterm2_tab_color [color]- Set tab color programmaticallyiterm2_tab_color_reset- Reset tab color to defaultit2setcolor [key] [value]- Set iTerm2 color values
Usage Examples
# Profile management
iterm2_profile "Development"
 
# Tab management
tab                  # New tab in current directory
vsplit_tab          # Vertical split
 
# Visual customization
iterm2_tab_color red  # Red tab for production work
iterm2_tab_color_reset # Reset color
 
# Enable shell integration in .zshrc
zstyle ':omz:plugins:iterm2' shell-integration yes