From 374825559bf88cbc17e17a36324797f606d6fdb9 Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Thu, 11 Sep 2025 04:04:33 +0200 Subject: [PATCH] tmux: Improve kill keybinds and pervent tmux from closing when there are still sessions --- tmux/dot-tmux.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tmux/dot-tmux.conf b/tmux/dot-tmux.conf index 5c456ae..17a3b8b 100644 --- a/tmux/dot-tmux.conf +++ b/tmux/dot-tmux.conf @@ -11,6 +11,8 @@ set -sg escape-time 0 set -g history-limit 5000 +set -g detach-on-destroy off # don't exit from tmux when closing a session + # Setup vi-mode with better keybindings # TODO: Escape does not work properly for leaving setw -g mode-keys vi @@ -75,3 +77,6 @@ bind-key -n M-9 select-window -t 9 bind-key -n M-0 select-window -t 10 bind-key "a" run-shell "sesh-select" + +bind-key x kill-pane +bind-key X kill-session