I was able to make GNU Screen start counting windows with the number 1 instead of the default 0 with this code in my .screenrc:
# Get rid of screen 0
bind c screen 1
bind ^c screen 1
bind 0 select 10
When I created windows in .screenrc I used screen 1
so that it would first try 1 and then count up if that window number was taken.
setw
in the pane setting:setw -g pane-base-index 1
See the .tmux.conf from book: http://media.pragprog.com/titles/bhtmux/code/config/tmux.conf – Jogusa Sep 26 '14 at 11:43setw
is alias forset-window-option
orset -w
. Alteringpane-base-index
is a window option. See tmux manpage -> http://manpages.ubuntu.com/manpages/precise/man1/tmux.1.html – Jogusa Sep 27 '14 at 10:21tmux
has to restart for windows to start at1
. In contrast, panes will start at1
just by doing<prefix> :source-file ~/.tmux.conf
. – llf Jan 02 '20 at 21:02tmux source-file ~/.tmux.conf
before this worked. – equant Dec 01 '22 at 20:22