This is a draft cheat sheet. It is a work in progress and is not finished yet.
Plugins
|
nice theme |
|
git information --> faster prompt |
|
show tmux key status |
General
<ctrl> + q |
prefix key (default C-b) |
<prefix> : |
interactive dialog (prompt) |
<prefix> r |
reload ~/.tmux.conf |
<prefix> t |
big clock |
<ctrl> + l |
clears screen |
<prefix> <ctrl> + c|v |
copy/paste to/from windows clipboard |
<prefix> ? |
list key bindings |
Copy Mode
<prefix> <enter> |
enter copy mode |
<enter> | ctrl + c |
leave copy mode and copy selection |
q |
leave copy mode and do not copy selection |
|
move cursor |
w | b |
move cursor forward/backward one word |
g | G |
move cursor top/bottom line |
<spacebar> |
start selection |
<esc> |
clear selection |
<prefix> p |
paste last buffer |
<prefix> P |
choose paste buffer |
:save-buffer buf.txt |
write laste buffer to file buf.txt |
/ |
search forward |
? |
search backward |
n | N |
next/previous keyword occurance |
|
|
Sessions
<prefix> d |
detach session |
<prefix> $ |
rename session |
<prefix> w |
session and window preview |
$ tmux ls |
list sessions |
$ tmux new -s dev |
start new session with name "dev" |
:new -s dev |
start new session with name "dev" |
$ tmux a -t dev |
reattach to session "dev" |
$ tmux kill-session -t dev |
kill "dev" |
$ tmux kill-server |
kill server and all sessions |
Windows
<prefix> c |
new window |
<prefix> , |
rename window |
<prefix> & |
close current window |
<prefix> a |
toggle last window |
<prefix> <ctrl> + | |
previous / next window |
<prefix> [0-9] |
move to window number [0-9] |
<prefix> f |
find window |
Panes
<prefix> - |
splits the current pane vertically |
<prefix> | |
splits the current pane horizontally |
<prefix> x |
close current pane |
<prefix> |
switch to pane with direction |
<prefix> z |
toggle zoom pane |
<prefix> <spacebar> |
toggle through layouts |
<prefix> ! |
convert pane to window |
<prefix> s |
Toggle sync-panes (cmd to all panes) |
|