From 53837bc2b3fea43b08b95d605536bbf6af23682d Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Sun, 1 May 2022 11:48:34 +0200 Subject: [PATCH] tmux: Set `renumber-windows` [renumber-windows][1]: > If on, when a window is closed in a session, automatically renumber > the other windows in numerical order. This respects the base-index > option if it has been set. If off, do not renumber the windows. [1]: tmux(1) --- .config/tmux/tmux.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index a3b1b6a..efa44b1 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -37,6 +37,9 @@ bind-key -T prefix R source-file "$XDG_CONFIG_HOME/tmux/tmux.conf" \; display-me # Fullscreen pane (toggle) bind-key -T prefix F resize-pane -Z +# Automatically renumber windows when closing one +set -g renumber-windows on + # Vim-bindings # Enter copy-mode with Escape