Set window numbering to start at 1

misc

// what it does

`set -g base-index 1` makes window numbering start at 1 instead of 0, so your windows line up with the number-row keys 1-9 instead of leaving 0 orphaned past the 9 key. It's a near-universal `.tmux.conf` tweak. Pair it with `setw -g pane-base-index 1` to make pane numbering start at 1 as well.

// tmux command

: set -g base-index 1

// gotcha

This only affects windows created after the option is set — existing windows keep their current indices, so set it in your config or before opening windows rather than expecting it to renumber a live session.