Set scrollback buffer limit
misc
// what it does
`set -g history-limit 10000` sets the maximum number of lines retained in each pane's scrollback buffer to 10000 (the default is 2000). Raising it lets you scroll further back through command output in copy-mode. Put it in `.tmux.conf` so every new pane gets the larger buffer.
// tmux command
: set -g history-limit 10000// gotcha
The limit is per-pane and applied at pane creation, so panes that already exist keep the old limit; also, a large value multiplied across many panes holds more scrollback in memory, so extremely high numbers can add up.