From 7c28319adb5d6cb0f61e278bca97a7b9eb73e658 Mon Sep 17 00:00:00 2001 From: nirenjan Date: Tue, 26 Feb 2013 19:00:27 -0800 Subject: [PATCH] Enable power detach in tmux configuration Power detach works similar to screen's power detach. ^A D will detach the tmux session and send SIGHUP to the parent process. --- tmux.conf | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tmux.conf b/tmux.conf index 4ffa279..2483b4f 100644 --- a/tmux.conf +++ b/tmux.conf @@ -151,9 +151,8 @@ bind-key - \ # screen and the scrollback buffer too bind-key -n C-k clear-history -# Disable the choose-client key binding. It usually results in the current -# client getting detached. -unbind-key D +# Power detach (detach and hangup parent process) +bind-key D detach-client -P # Rather than go with the last session, let the user pick from the list # of available sessions