Session 0 Session 1 Session 2
P1 [Link]
P1 P1 P2 see also: [Link] (fork)
P4 P2
P2
Win3 P3 Win2
P5 P3 Win2 Win1
Win1
Panes P1, ... Panes P1, P2, ... Panes P1, P2
tmux tmux
Client Server
Control via
Commandline Kbd-Shortcuts (Client)
tmux list-clients
tmux <cmd> 🄿 ... 🄿: <cmd> tmux detach-client
tmux attach
tmux kill-server
Prefix 🄿 == C-b (dflt)
C-z (hh)
C = Control/Strg
Panes Windows Copy/Paste
🄿 % split horiz. 🄿 c new window 🄿[ enter copy mode
🄿 " split vertic. 🄿 x close window
Vi keys
🄿 🡑 🄿 w list windows ␣ start selection
🄿 🡓 go to 🄿 <n> move to <n> ESC clear selection
🄿 🡒 pane
🄿 n next h,j,k,l navigation
🄿 🡐 🄿 p previous ⏎ copy selection to buf0
🄿 { move left 🄿 & kill window 🄿] paste in buf0
🄿 } move right 🄿 f find in window 🄿- delete buffer
🄿 C-o swap/rotate 🄿 , rename window 🄿= choose buffer
🄿 x kill pane 🄿# list paste buffers
🄿 q pane index
Session :save-buffer <file>
🄿 ! pane to window :list-buffers
🄿 i Info about pane 🄿s show sessions :choose-buffer
🄿 ␣ cycle through 🄿( next session :show-buffer (buf0)
🄿 o next pane 🄿) prev session
🄿 Z zoom pane 🄿d detach session
🄿-🡑 resize (hold prefix (tmux attach)
🄿-🡓 resize and arrow) 🄿$ rename session
🄿r refresh client
Misc
Commands:
🄿? show keys list-commands attach
🄿~ show messages list-sessions (ls) detach
list-clients (lsc)
🄿 C-z background
new-session
🄿: enter command
kill-session
tmux -V report version kill-server
tmux -2 256 colours
More info:
- man tmux
~/.[Link] - Tony Narlock, The Tao of tmux
:source ~/.[Link] [Link]
- Brian P. Horgan, Productive mouse-free
Tmuxp session manager development [Link]
[Link] - [Link]
Scripting lib - [Link]
[Link]
<[Link]@[Link]> 2020-11-03