Summary
Tmux is a terminal multiplexer an alternative to GNU Screen . In other words, it means that you can start a Tmux session and then open multiple windows inside that session. Each window occupies the entire screen and can be split into rectangular panes. difference between pane,window and session image
Cheat sheet
-
prefix command default: ctrl+b custom: ctrl+w all the commands below are with prefix
-
detach session: d
-
attach: tmux attach -t(-d) name
-
switch between sessions: ()
-
list sessions: ls
-
close pane: x
-
new session: :new -s name
-
copy mode: <prefix> [ then use vim mode command move around and copy(y) and paste(p)
-
describe key binding: <prefix> /
-
rename current session: $
-
pane to new window
break-pane or <prefix> !
-
selecting/deleting session, windows, pane interactively <prefix> w x -> to delete selected session or window
tmux choose-tree
- killing session (assuming here that you’re on keepMe session)
-or-
- list all commands: tmux list-keys
copy paste workflow
ref Add setw -g mode-keys vi in your tmux config
- Ctrl + [ to enter tmux vi copy mode
- Move around with vim navigation keys
- Begin highlight with Space(v)
- Copy with Enter(y)
- Paste with Ctrl + ] (<prefix> P)(exit copy mode)
- z: toggle zoom