Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

tmux

Stow package for ~/.tmux.conf. Installs via stow tmux from the dotfiles root. TPM auto-bootstraps on first run, so a fresh machine just needs tmux itself.

Table of contents

Quick reference

Prefix is Ctrl+A (not the tmux default Ctrl+B). Everything below assumes you press the prefix first.

Sessions, windows, panes

KeysAction
prefix + aToggle to last window
prefix + cNew window
prefix + ,Rename window
prefix + sSession picker (built-in)
prefix + Ffzf picker for sessions / windows / panes (tmux-fzf)
prefix + gRipgrep+fzf popup over the current pane’s directory (runs frg; opens result in $EDITOR)
prefix + dDetach session
prefix + rReload ~/.tmux.conf

Splits and navigation (tmux-pain-control)

KeysAction
`prefix +`
prefix + -Split pane vertically (top/bottom)
prefix + h/j/k/lMove focus left/down/up/right
prefix + H/J/K/LResize pane (repeatable)
prefix + < / >Swap window with previous/next

Copy / paste (vi mode + tmux-yank)

KeysAction
prefix + [Enter copy mode
vBegin visual selection
yCopy selection to system clipboard (pbcopy / xclip / wl-copy)
qExit copy mode
prefix + ]Paste

Session persistence (tmux-resurrect + tmux-continuum)

KeysAction
prefix + Ctrl-sSave current session manually
prefix + Ctrl-rRestore last saved session

Continuum also auto-saves every 15 minutes and auto-restores the last session whenever tmux starts (@continuum-restore 'on').

Misc

KeysAction
prefix + Ctrl-s (this config)Toggle synchronize-panes for the current window
MouseEnabled — click to focus panes, drag to resize, scroll to scrollback

SYNC shows in the right status bar while pane sync is active.

Plugins

Managed by TPM. Install or update with prefix + I (capital i) inside tmux.

PluginPurpose
tmux-sensibleSaner defaults (history-limit, escape-time, focus-events, etc.)
tmux-pain-control`
tmux-yankCopy from tmux to the OS clipboard
tmux-resurrectSave / restore tmux sessions
tmux-continuumAuto-save every 15 min, auto-restore on tmux start
tmux-fzfprefix + F opens an fzf picker for sessions/windows/panes/keybindings
dracula/tmuxStatus-bar theme

Optional plugins commented out in the config (uncomment + prefix + I): tmux-logging, tmux-sessionist, tmux-menus, tmux-sidebar.

Fresh-machine setup

# tmux must be installed (Brewfile handles macOS; apt install tmux on Debian)
stow tmux              # from the dotfiles root
tmux                   # TPM auto-clones and installs plugins on first launch