This is a draft cheat sheet. It is a work in progress and is not finished yet.
panes
tmux split-window |
pre + " |
split window vertically |
tmux split-window |
pre + % |
split window horizontally |
tmux swap-pane -[UDLR] |
pre + [UDLR] |
swap pane |
|
pre + q |
show pane numbers |
|
pre + ! |
break the pane out of window |
|
pre + x |
kill current pane |
windows
new-window |
pre + c |
create a new window |
select-window -t :0-9 |
pre + [0-9] |
move to window based on index |
rename-window |
pre + , |
rename current window |
|
pre + w |
list windows |
|
pre + n |
next window |
|
pre + p |
previous window |
sessions
tmux new -s <session_name> |
|
create new session |
tmux attach -t <session_name> |
|
attach existing session |
tmux switch -t <session_name> |
|
switch to existing session |
tmux list-sessions |
pre + s |
list existing sessions |
tmux detach |
pre + d |
detach currently attached session |
tmux kill-session -t <session_name> |
|
kill a session |
|
pre + $ |
rename the current session |
|
|
|