[tmux] automatically copy to pasteboard

pull/28/head
Alpha Chen 8 years ago
parent a346358b64
commit 606f430950

@ -19,8 +19,11 @@ set-option -g automatic-rename on
set-window-option -g mouse off set-window-option -g mouse off
# copy and paste # copy and paste
bind -t vi-copy 'v' begin-selection set-option mode-keys vi
bind -t vi-copy 'y' copy-selection bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'V' send -X select-line
bind-key -T copy-mode-vi 'r' send -X rectangle-toggle
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
## etc ## etc
set-window-option -g mode-keys vi set-window-option -g mode-keys vi

Loading…
Cancel
Save