- C-b [ - scrolling mode (using arrows or Page Up/Down)
- C-b % - split vertically (change to not require holding shift?)
- C-b " - split horizontally (change?)
- C-b - navigate between panes
- C-b z - make a pane go fullscreen (Zen mode?)
- C-b C- - resize pane in the direction of the arrow key
Ctrl+D to close a pane (just like closing a regular session).
Windows in tmux work similarly to tabs in the terminal (so why not just use those, one might ask?).
- C-b c - create new window
- C-b p - switch to previous window
- C-b n - switch to next window
- C-b - switch to a specific window
- C-b , - rename current window
- C-b d - detach current session, leaving processes running in the background.
Same as
tmux detach
. tmux attach -t SOMENAME
- attach to session SOMENAME (fromtmux ls
output; default names are ints). If there's just one session, can also just runtmux attach
.- C-b C-z - suspend session (change this? It's too similar to zen mode)
tmux ls
- list sessionstmux new -s HACKING
- create a new session named HACKINGtmux rename-session -t 0 HACKING
- rename session 0 to HACKING
- be able to restore sessions (incl. running commands) between system restarts. https://github.com/tmux-plugins/tmux-resurrect might help