Remove kill-window/pane confirmation; new prefix: M-a

This commit is contained in:
Henrik Lissner 2014-09-21 10:10:23 -04:00
parent 1f7c1c0b82
commit 4600402d8c

View file

@ -16,11 +16,11 @@ setw -g aggressive-resize off
set -g mode-mouse on set -g mode-mouse on
setw -g mouse-select-window on setw -g mouse-select-window on
setw -g mouse-select-pane on setw -g mouse-select-pane on
set-option -g xterm-keys on set-option -gw xterm-keys on
## Key bindings ########### ## Key bindings ###########
# Remap the key prefix # Remap the key prefix
set -g prefix M-c set -g prefix M-a
unbind C-b unbind C-b
# Go to last active window # Go to last active window
bind-key a last-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-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 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 # after copying to a tmux buffer, hit y again to copy to clipboard
bind y run "tmux save-buffer - | reattach-to-user-namespace pbcopy" bind y run "tmux save-buffer - | reattach-to-user-namespace pbcopy"
# quick view of processes # quick view of processes