#Tmux Cheat Sheet
Dotfiles: richardkall/dotfiles
##Basic
Command | Description |
---|---|
<C-a> |
Prefix |
<Prefix> : |
Command mode |
<Prefix> ? |
Show bindings |
##Sessions
Command | Description |
---|---|
$ tn {name} |
New session |
$ ta {name} |
Attach to session |
$ tls , <Prefix> s |
List sessions |
$ exit |
Destroy session |
<Prefix> ( , ) |
Next/previous session |
<Prefix> d |
Detach from session |
##Windows
Command | Description |
---|---|
<Prefix>{#} |
Select window by number |
<Prefix> <C-h> , <C-l> |
Next/previous window |
<Prefix> <C-o> |
Rotate window |
<Prefix> , |
Rename window |
<Prefix> X |
Kill window |
##Panes
Command | Description |
---|---|
<Prefix> % , " |
Split horizontal/vertical |
<Prefix> _ |
Split vertical 75/25 |
<Prefix> h , j , k , l |
Navigate between panes |
<Prefix> <Space> |
Cycle layouts |
<Prefix> <S-{> |
Rotate panes |
<Prefix> <C-a> |
Switch to last pane |
<Prefix> H , J , K , L |
Resize panes |
<Prefix> z |
Maximize pane |
<Prefix> q |
Display pane numbers |
<Prefix> ! |
Create window from pane |
<Prefix> <C-l> |
Clear buffer |
<Prefix> x |
Close pane |
##Copy mode
Command | Description |
---|---|
<Prefix> [ |
Enter copy mode |
v |
Highlight |
y |
Copy selection |
g , G |
Go to top/bottom |
<C-b> , <C-f> |
Page up/down |
/ , ? |
Search forward/backward |
q , <CR> |
Exit copy mode |
##Tmuxinator
Command | Description |
---|---|
$ mux list |
List projects |
$ mux {name} |
Launch project |
$ mux new {name} |
New project |
$ mux open {name} |
Edit project |
$ mux copy {old} {new} |
Duplicate project |
$ mux delete {name} |
Delete project |