Remove kill-window/pane confirmation; new prefix: M-a
This commit is contained in:
parent
1f7c1c0b82
commit
4600402d8c
11
tmux.conf
11
tmux.conf
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue