tmux stuff
N.B. I always reset the tmux command option from ctrl + b to ctrl + a.
Sessions
- List all tmux sessions:
tmux lsorctrl + a s:
... tmux ls
... 0: 4 windows (created Sat Nov 23 08:44:49 2019) [158x78] (attached)
Windows
-
New Window:
ctrl + a n -
Switch/select window:
ctrl + a 0...9 -
Move window:
ctrl + a :and:swap-window -t [window-number|+/-move-positions]Swap window:ctrl + a :and:swap-window -s [window-number] -t [window-number] -
Close current window:
ctrl + a &
Panes
-
Split pane vertically:
ctrl + a % -
Split pane horizontally:
ctrl + a " -
Move current pane left:
ctrl + a { -
Move current pane right:
ctrl + a } -
Toggle last active pane:
ctrl + a ; -
Switch to next pane:
ctrl + a o