Tmux
Sessions
| Shortcut | Action |
|---|
Prefix + $ | Rename the current session. |
Prefix + d | Detach from the current session. |
Prefix + s | List all sessions and switch. |
Prefix + L | Switch to the last session. |
Prefix + ( | Move to the previous session. |
Prefix + ) | Move to the next session. |
Prefix + C | Create a new session (prompt for name). |
Windows
| Shortcut | Action |
|---|
Prefix + c | Create a new window. |
Prefix + , | Rename the current window. |
Prefix + p | Switch to the previous window. |
Prefix + n | Switch to the next window. |
Prefix + 0-9 | Switch to window by number. |
Prefix + w | List all windows interactively. |
Prefix + & | Close the current window. |
Prefix + . | Move the current window |
Prefix + f | Find window by name. |
Panes
| Shortcut | Action |
|---|
Prefix + " | Split pane horizontally. |
Prefix + % | Split pane vertically. |
Prefix + x | Close the current pane. |
Prefix + z | Zoom/unzoom the current pane. |
Prefix + ! | Convert pane into a separate window. |
Prefix + { | Move the current pane left. |
Prefix + } | Move the current pane right. |
Prefix + Arrow Keys | Switch between panes. |
Prefix + q | Show pane numbers |
Prefix + Space | Cycle through pane layouts. |
Prefix + Alt+Arrow | Resize pane in direction. |
Prefix + Ctrl+Arrow | Resize pane slowly. |
Prefix + o | Switch to the next pane. |
| Shortcut | Action |
|---|
Prefix + [ | Enter copy mode. |
q | Exit copy mode. |
Space | Start text selection. |
Enter | Copy selected text. |
Ctrl-v | Toggle rectangular selection. |
g | Go to the top of the buffer. |
G | Go to the bottom of the buffer. |
/ | Search forward. |
? | Search backward. |
n | Repeat last search forward. |
N | Repeat last search backward. |
Miscellaneous
| Shortcut | Action |
|---|
Prefix + ? | List all keybindings. |
Prefix + t | Show a clock. |
Prefix + r | Reload tmux config. |
Prefix + : | Enter command mode. |
Prefix + D | Choose a client to detach. |
Prefix + ~ | Show tmux messages. |
Prefix + M-n | Next layout. |
Prefix + M-p | Previous layout. |
Buffers & Clipboard
| Shortcut | Action |
|---|
Prefix + = | List and paste from paste buffers. |
Prefix + - | Delete the most recent buffer. |
Prefix + P | Paste the most recent buffer. |
Prefix + ] | Paste the last copied text. |