From 82e29be5d5a7572f474ed21ad41b61dd87ec48b2 Mon Sep 17 00:00:00 2001 From: Mike Beattie Date: Fri, 6 Dec 2019 11:25:29 +0000 Subject: TMUX: tweak x/C-x bindings Signed-off-by: Mike Beattie --- .tmux.conf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.tmux.conf b/.tmux.conf index 85357ab..638c017 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -45,7 +45,13 @@ setw -g window-status-style fg=white,dim # Add a second prefix, and a binding to send the prefix set -g prefix2 C-x -bind-key -T prefix C-x send-prefix -2 +bind-key -T prefix x send-prefix -2 + +# Rebind ' C-x' to switch to the last active window +bind-key -T prefix C-x last-window + +# Re-add the old ' x' binding as C-q +bind-key -T prefix C-q confirm-before -p "kill-pane #P? (y/n)" kill-pane # Remove the Ctrl- bindings unbind-key -T prefix C-Up -- cgit v1.2.3