MiscellaneousPrefix + : (then type command)
set-option
Short form: set
Set a session, window, or server option. Without -g, the option is set for the current session.
Synopsis
bash
tmux set-option [-aFgopqsuUw] [-t target-pane] option [value]Options
| Flag | Description |
|---|---|
| -g | Set global option (affects all sessions/windows) |
| -a | Append to string option |
| -u | Unset option |
| -w | Set window option (same as setw) |
| -s | Set server option |
Examples
Enable mouse globally
bash
tmux set -g mouse onChange prefix to Ctrl+a
bash
tmux set -g prefix C-aStart window numbering at 1
bash
tmux set -g base-index 1Increase scrollback buffer
bash
tmux set -g history-limit 10000Default Keybinding
Prefix + : (then type command)
Default prefix is Ctrl+b
Pro Tips
- •Use -g for options that should apply to all sessions
- •Put these in your .tmux.conf for persistence