From 4171a7f3e12b9bca7daae8c6263acbf031100870 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Uruba?= Date: Tue, 17 Feb 2026 19:59:56 +0100 Subject: [PATCH] tmux: Enhance session detachment behaviour --- tmux/.tmux.conf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 769e90f..9879795 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -1,6 +1,8 @@ set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'tmux-plugins/tmux-resurrect' +set -g @plugin 'laktak/extrakto' +set -g @plugin 'tmux-plugins/tmux-yank' # Colors set -g @bg "#1A212E" @@ -26,4 +28,17 @@ setw -g window-status-format ' #I #[fg=#{@fg}]#W #[fg=#{@orange}]#F ' setw -g window-status-bell-style 'fg=#{@orange} bg=#{@red} bold' +# Controls +setw -g mode-keys vi +# set -g mouse on + +# Detached sessions +set -g destroy-unattached on + +# Make manual detachment different from defaults +# (to prevent accidental detachments) +unbind d +bind D confirm-before -p "Detach HOST tmux? (y/n)" detach-client + +# Run tmux plugin manager run '~/.tmux/plugins/tpm/tpm'