Set windows and panes to begin at 1 instead of 0.

Section: Core configuration

Start numbering at 1

tmux
tmux
set -g base-index 1
setw -g pane-base-index 1
Explanation

Many users find one-based numbering easier to remember.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Core configuration
Change prefix to Ctrl-a
Replace the default prefix with a screen-style prefix.
OpenIn sheettmuxsame section
Renumber windows automatically
Keep window numbers compact after closing windows.
OpenIn sheettmuxsame section
Enable mouse support
Use mouse selection and pane/window switching.
OpenIn sheettmuxsame section
Reload config file
Apply config changes without restarting tmux.
OpenIn sheetbashsame section
Move status bar to top
Place the tmux status line above panes.
OpenIn sheettmux1 tag match
Show session name on the left
Customize the left side of the status line.
OpenIn sheettmux1 tag match