From 269bd5987a4fde608e6ad01b8fcdba7019a482ca Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Mon, 17 Jan 2022 22:56:06 -0500 Subject: [PATCH] tmux: Add preferred window numbering handling I like to order my windows 1-9 (I think of it as paired up with the way the keyboard lays them out), and I like my windows to renumber if I close a window (no gaps!). --- .tmux.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.tmux.conf b/.tmux.conf index f395772..b5dab69 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -19,3 +19,7 @@ bind-key C-l select-pane -R # Use | and - for more intuitive splits (in the same location!) bind-key | split-window -c "#{pane_current_path}" -h bind-key - split-window -c "#{pane_current_path}" -v + +# Start numbers at 1 (like the keyboard), and reorder on close +set-option -g base-index 1 +set-option -g renumber-windows on -- libgit2 1.1.1