#Tmux-modern
start new:
tmux
start new with session name:
tmux new -s myname
attach:
tmux a # (or at, or attach)
attach to named:
tmux a -t myname
list sessions:
tmux ls
kill session:
tmux kill-session -t myname
cheat sheet for tmux with sessionist,pane,ressurect,continum and tmux sensible as a substitute for a tiling window manager. Note: Space seperated commands
C-p
previous-windowC-n
next-windowC-b
send-prefixC-b b
last-window
##Pane Management
o swap panes
q show pane numbers
x kill pane
⍽ space - toggle between layouts
-
C-b h
andC-b C-h
select pane on the left -
C-b j
andC-b C-j
select pane below the current one -
C-b k
andC-b C-k
select pane above -
C-b l
andC-b C-l
select pane on the right -
C-b + shift + h
resize current pane 5 cells to the left -
C-b + shift + j
resize 5 cells in the up direction -
C-b + shift + k
resize 5 cells in the down direction -
C-b + shift + l
resize 5 cells to the right -
C-b + |
split current pane horizontally -
C-b + -
split current pane vertically -
C-b + <
moves current window one position to the left -
C-b + >
moves current window one position to the right
##Session management
C-b + g
prompts for session name and switches to it. Performs 'kind-of' name completion. Faster than the built-in C-b + s prompt for long session lists.C-b + C
(shift + c) - prompt for creating a new session by name.C-b + X
(shift + x) - kill current session without detaching tmux.C-b + S
(shift + s) - switches to the last session. The same as built-in C-b + L that everyone seems to override with some other binding.C-b + @
- promote current pane into a new session. Analogous to how C-b + ! breaks current pane to a new window.
##Tmux ressurect / Continum
C-b + Ctrl-r
Restore Saves