From 7daf3c21644accff21d0485dfbf0f42b6bd8d117 Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Sun, 1 Feb 2026 07:16:13 +0100 Subject: [PATCH] adjust tmux config --- modules/tmux.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/tmux.nix b/modules/tmux.nix index 5a0013c..747940d 100644 --- a/modules/tmux.nix +++ b/modules/tmux.nix @@ -126,6 +126,12 @@ in # Automatically renumber windows set -g renumber-windows on + + # Switch to another session instead of detaching when current session is destroyed + set -g detach-on-destroy off + + # Kill pane without confirmation + bind-key x kill-pane # Quick window movement bind-key -n C-S-Left swap-window -t -1\; select-window -t -1