From 99974c085fc3de25f34de7ce2b2eddf2d4a1484f Mon Sep 17 00:00:00 2001 From: Jedrzej Orbik Date: Tue, 10 Dec 2024 14:50:42 +0100 Subject: [PATCH] Renumber windows when a window is closed --- stow/common/dot-tmux.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stow/common/dot-tmux.conf b/stow/common/dot-tmux.conf index 2c7672f..f428726 100644 --- a/stow/common/dot-tmux.conf +++ b/stow/common/dot-tmux.conf @@ -49,6 +49,9 @@ set -g mouse on # Attempt to set the terminal clipboard content using the xterm escape sequence set -g set-clipboard on +# Renumber windows when a window is closed +set-option -g renumber-windows on + bind-key -n C-S-Left swap-window -t -1\; select-window -t -1 bind-key -n C-S-Right swap-window -t +1\; select-window -t +1 bind-key @ choose-window 'join-pane -h -s "%%"'