From 6bdaca40e025aaa122003c4989c8189672dacb25 Mon Sep 17 00:00:00 2001 From: Jake Hillion Date: Wed, 17 Jul 2024 14:57:39 +0100 Subject: [PATCH] tmux: index from 0 and always allow attach --- modules/home/tmux/.tmux.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/home/tmux/.tmux.conf b/modules/home/tmux/.tmux.conf index 9407618..8312c1b 100644 --- a/modules/home/tmux/.tmux.conf +++ b/modules/home/tmux/.tmux.conf @@ -8,3 +8,11 @@ bind -n C-k clear-history bind '"' split-window -c "#{pane_current_path}" bind % split-window -h -c "#{pane_current_path}" bind c new-window -c "#{pane_current_path}" + +# Start indices at 1 to match keyboard +set -g base-index 1 +setw -g pane-base-index 1 + +# Open a new session when attached to and one isn't open +# Must come after base-index settings +new-session