From: Samir Benmendil Date: Tue, 23 Jan 2024 14:09:03 +0000 (+0000) Subject: tmux: start counting panes and windows from 1 X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/212fb1515dc4c0b76c8e33fe380811e019fff1bb tmux: start counting panes and windows from 1 This makes the keybindings saner. No more using right-most 0 key to jump to left-most window. Also map 0 to go to window 10. --- diff --git a/tmux/tmux.conf b/tmux/tmux.conf index 4e4a71e..e74bcb1 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -6,6 +6,11 @@ set -g set-titles on set -g mouse set -g mode-keys vi +# Start windows and panes at 1, not 0 +set -g base-index 1 +setw -g pane-base-index 1 +bind-key 0 select-window -t 10 + bind-key Escape copy-mode unbind-key p bind-key p paste-buffer