]> git.rmz.io Git - dotfiles.git/commitdiff
tmux: start counting panes and windows from 1
authorSamir Benmendil <me@rmz.io>
Tue, 23 Jan 2024 14:09:03 +0000 (14:09 +0000)
committerSamir Benmendil <me@rmz.io>
Tue, 23 Jan 2024 14:09:03 +0000 (14:09 +0000)
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.

tmux/tmux.conf

index 4e4a71ea197d82e0add24be8ffbb4ffdf11457c5..e74bcb11116653cf832774c05a5142c602c7a626 100644 (file)
@@ -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