
commands
| command | action |
|---|
tmux, tmux new, tmux new-session | create a new session |
tmux new -s {name} | create a new session with {name} as a name |
tmux a, tmux att, tmux attach, tmux attach-session | attach to an existing session |
tmux a -t {name} | attach to an existing session with {name} as a name |
tmux kill-ses | kill existing session |
tmux kill-session -t {name} | kill existing session with {name} as a name |
keybindings
sessions
| keybinding | action |
|---|
ctrl-b-$ | rename current session |
ctrl-b-d | detach from current session |
ctrl-b-) | switch to next session |
ctrl-b-( | switch to previous session |
windows
| keybinding | action |
|---|
ctrl-b-c | create a new window |
ctrl-b-{n} | move to {n}th window |
ctrl-b-n | move to next window |
ctrl-b-p | move to previous window |
ctrl-b-l | move to last used window |
ctrl-b-' | move to window by name |
ctrl-b-. | change window number |
ctrl-b-, | rename window |
ctrl-b-& | kill current window |
ctrl-b-w | list windows |
panes
| keybinding | action |
|---|
ctrl-b-% | vertical split |
ctrl-b-" | horizontal split |
ctrl-b-{arr-r} | move to pane to the right |
ctrl-b-{arr-l} | move to pane to the left |
ctrl-b-{arr-u} | move up to pane |
ctrl-b-{arr-d} | move down to pane |
ctrl-b-o | move to next pane |
ctrl-b-; | move to last active pane |
ctrl-b-} | move pane right |
ctrl-b-{ | move pane right |
ctrl-b-! | convert pane to window |
ctrl-b-x | kill current pane |
copy mode
icp - in copy mode
| keybindings | action |
|---|
ctrl-b-[ | enter copy mode |
ctrl-b-] | paste from buffer |
icp space | start selection |
icp enter | copy selected text |
icp esc | clear selection |
icp g | go to top |
icp G | go to bottom |
icp h, arr-l | move cursor left |
icp j, arr-d | move cursor down |
icp k, arr-u | move cursor up |
icp l, arr-r | move cursor right |
icp / | search |
icp # | list paste buffers |
icp q | quit copy mode |