C-Q as prefix. C-Q z ignores mouse. C-Z e enables it back

This commit is contained in:
motius 2017-03-09 17:02:07 +01:00
parent bda6d613ca
commit 21efef201e
1 changed files with 8 additions and 1 deletions

View File

@ -1,4 +1,7 @@
# https://gist.github.com/spicycode/1229612
unbind C-b
set -g prefix C-q
bind C-q send-prefix
# 0 is too far from ` ;)
set -g base-index 1
@ -11,7 +14,7 @@ set -g status-keys vi
set -g history-limit 10000
setw -g mode-keys vi
set -g mouse on
set -g mode-mouse on
setw -g monitor-activity on
bind-key v split-window -h
@ -33,6 +36,10 @@ bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# mouse mode on-off
bind e set -g mode-mouse on
bind z set -g mode-mouse off
# Use Alt-vim keys without prefix key to switch panes
bind -n M-h select-pane -L
bind -n M-j select-pane -D