Skip to content

tmux

tmux lets you run multiple terminal sessions in a single window with split panes and session persistence.

Image not found
tmux with multiple panes
Image not found
tmux status bar with window list

Config lives at ~/.config/tmux/tmux.conf.

SettingValue
PrefixCtrl + Space (also Ctrl + B)
Base index1 (windows and panes)
MouseEnabled
Copy modeVi keybindings
Status barTop position, themed
Colors256 color with RGB overrides

All prefixed bindings require pressing Ctrl + Space first.

ShortcutAction
Prefix + hSplit horizontally
Prefix + vSplit vertically
Ctrl + Alt + ArrowsNavigate panes
Ctrl + Alt + Shift + ArrowsResize panes
Prefix + xKill pane
ShortcutAction
Prefix + cNew window
Prefix + ,Rename window
Alt + 1-9Select window
Alt + ArrowsNavigate windows
ShortcutAction
Prefix + CNew session
Prefix + RRename session
Alt + Up/DownSwitch sessions

Enter copy mode with Prefix + [, then use Vi keys:

KeyAction
vBegin selection
yCopy selection

Edit ~/.config/tmux/tmux.conf. The config uses Prefix + r to reload.

The bash alias t attaches to an existing session or creates a new one:

t # attach or new session