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 1Explanation
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.
Renumber windows automatically
Keep window numbers compact after closing windows.