A quick reference for my tmux setup. My custom bindings plus the essential built-in ones.
P = prefix (Ctrl+Space, or Caps Lock+Space in Ghostty)
| Action | Keys |
|---|
| New session | tmux new -s name |
| New session (from inside tmux) | P then :new -s name |
| New session (shell helper) | ts name |
| Attach to session | tmux attach -t name |
| Attach or create (shell helper) | ts name |
| List sessions | tmux ls |
| Session picker (with preview) | P then s |
| Next session | Option+L |
| Previous session | Option+H |
| Rename session | P then $ |
| Detach | P then d |
| Kill session | tmux kill-session -t name |
| Action | Keys |
|---|
| Switch to window N | Option+N (1-9) |
| New window | P then c |
| New named window (shell helper) | t name |
| Next window | P then Ctrl+N |
| Previous window | P then Ctrl+P |
| Last window (toggle) | P then Ctrl+A |
| Rename window | P then , |
| Close window | P then & (or just exit) |
| Move window | P then . |
| Action | Keys |
|---|
| Horizontal split | P then \ |
| Vertical split | P then - |
| Navigate left | P then h |
| Navigate down | P then j |
| Navigate up | P then k |
| Navigate right | P then l |
| Close pane | P then x |
| Toggle zoom (fullscreen pane) | P then z |
| Resize pane | P then hold arrow keys |
| Rotate panes | P then Ctrl+O |
| Action | Keys |
|---|
| Enter copy mode | P then v |
| Start selection | v (in copy mode) |
| Yank (copy) | y (in copy mode) |
| Scroll up | Ctrl+U (in copy mode) |
| Scroll down | Ctrl+D (in copy mode) |
| Search forward | / (in copy mode) |
| Search backward | ? (in copy mode) |
| Exit copy mode | q or Escape |
| Action | Keys |
|---|
| Lazygit popup | P then g |
| Reload config | P then R |
| Command prompt | P then : |
| Show clock | P then t |
| List all key bindings | P then ? |