- Based off https://gist.github.com/MohamedAlaa/2961058
- Prefix: `+b
start new:
tmux
tmux new -s myname
attach:
tmux a
tmux a -t myname
list sessions:
tmux ls
kill session:
tmux kill-session -t myname
enable scroll
To enter: <Ctrl-b> [
To use: <Ctrl-u>, <Ctrl-d>
To exit: q
c create window
w list windows
n next window
p previous window
f find window
, name window
& kill window
% vertical split
" horizontal split
o swap panes
q show pane numbers
x kill pane
+ break pane into window (e.g. to select text by mouse to copy)
- restore pane from window
⍽ space - toggle between layouts
<prefix> q (Show pane numbers, when the numbers show up type the key to goto that pane)
<prefix> { (Move the current pane left)
<prefix> } (Move the current pane right)
<prefix> z toggle pane zoom