$HOME is where the <3 is
git clone git://
Log | Files | Refs | README | LICENSE

commit 269bd5987a4fde608e6ad01b8fcdba7019a482ca (patch)
parent ee29aff2d630588f4880680c3db5628b05a2d203
Author: Alex Karle <>
Date:   Mon, 17 Jan 2022 22:56:06 -0500

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!).

M.tmux.conf | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git 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