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)

ActionKeys
DetachCtrl+b d
New windowCtrl+b c
Next windowCtrl+b n
Previous windowCtrl+b p
Split horizontalCtrl+b "
Split verticalCtrl+b %
Switch paneCtrl+b arrow
Kill paneCtrl+b x
Resize paneCtrl+b Ctrl+arrow

Useful Resources


iTerm2 Shortcuts

ActionKeys
New TabCmd+T
Close TabCmd+W
Split HorizontalCmd+D
Split VerticalCmd+Shift+D
Navigate PanesCmd+[ / Cmd+]
Full ScreenCmd+Enter
FindCmd+F
Clear BufferCmd+K

Tags

tmuxiterm2terminalmacosproductivity

Found this useful?

Subscribe to get more cheatsheets and resources.