summaryrefslogtreecommitdiff
path: root/.tmux.conf
diff options
context:
space:
mode:
Diffstat (limited to '.tmux.conf')
-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