cheatsheet
Tmux + iTerm2 Cheatsheet
Quick reference for using Tmux with iTerm2 for better terminal multiplexing on macOS.
Published: November 28, 2024
Tmux + iTerm2 Cheatsheet
To use Tmux with iTerm2, use the -CC option for native integration.
Basic Tmux Commands with iTerm2
# Create a new session
tmux -CC
# Create a new named session
tmux new -s <session-name>
# Attach to a session
tmux -CC a -t <session-name>
Standard Tmux Commands
# List sessions
tmux ls
# Attach to session
tmux attach -t <session>
# Kill session
tmux kill-session -t <session>
# Detach from session
Ctrl+b d
Tmux Key Bindings
All commands start with Ctrl+b (prefix key)
| Action | Keys |
|---|---|
| Detach | Ctrl+b d |
| New window | Ctrl+b c |
| Next window | Ctrl+b n |
| Previous window | Ctrl+b p |
| Split horizontal | Ctrl+b " |
| Split vertical | Ctrl+b % |
| Switch pane | Ctrl+b arrow |
| Kill pane | Ctrl+b x |
| Resize pane | Ctrl+b Ctrl+arrow |
Useful Resources
iTerm2 Shortcuts
| Action | Keys |
|---|---|
| New Tab | Cmd+T |
| Close Tab | Cmd+W |
| Split Horizontal | Cmd+D |
| Split Vertical | Cmd+Shift+D |
| Navigate Panes | Cmd+[ / Cmd+] |
| Full Screen | Cmd+Enter |
| Find | Cmd+F |
| Clear Buffer | Cmd+K |
Tags
tmuxiterm2terminalmacosproductivity