From 4600402d8c03dc7aedb856eeb644589453b5cbcb Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 21 Sep 2014 10:10:23 -0400 Subject: [PATCH] Remove kill-window/pane confirmation; new prefix: M-a --- tmux.conf | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tmux.conf b/tmux.conf index d9b87a7c..68bfb5b5 100644 --- a/tmux.conf +++ b/tmux.conf @@ -16,11 +16,11 @@ setw -g aggressive-resize off set -g mode-mouse on setw -g mouse-select-window on setw -g mouse-select-pane on -set-option -g xterm-keys on +set-option -gw xterm-keys on ## Key bindings ########### # Remap the key prefix -set -g prefix M-c +set -g prefix M-a unbind C-b # Go to last active window bind-key a last-window @@ -52,6 +52,13 @@ bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iqE bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)g?(view|vim?)(diff)?$' && tmux send-keys C-l) || tmux select-pane -R" bind -n C-\ run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)g?(view|vim?)(diff)?$' && tmux send-keys 'C-\\') || tmux select-pane -l" +bind n next-window +bind p previous-window + +# Disable confirmation +bind & kill-window +bind x kill-pane + # after copying to a tmux buffer, hit y again to copy to clipboard bind y run "tmux save-buffer - | reattach-to-user-namespace pbcopy" # quick view of processes