summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Beattie <mike@ethernal.org>2019-12-06 11:25:29 +0000
committerMike Beattie <mike@ethernal.org>2019-12-06 11:25:29 +0000
commit82e29be5d5a7572f474ed21ad41b61dd87ec48b2 (patch)
tree710a0663b4a9d8ae5e15586f2b4c7f2a76dc3596
parentdd427a533fbdcd40d3662668b48864bbd403fb10 (diff)
TMUX: tweak x/C-x bindings
Signed-off-by: Mike Beattie <mike@ethernal.org>
-rw-r--r--.tmux.conf8
1 files changed, 7 insertions, 1 deletions
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 '<prefix> C-x' to switch to the last active window
+bind-key -T prefix C-x last-window
+
+# Re-add the old '<prefix> x' binding as C-q
+bind-key -T prefix C-q confirm-before -p "kill-pane #P? (y/n)" kill-pane
# Remove the Ctrl-<direction> bindings
unbind-key -T prefix C-Up