[tmux] automatically copy to pasteboard

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

@ -19,8 +19,11 @@ set-option -g automatic-rename on
set-window-option -g mouse off
# copy and paste
bind -t vi-copy 'v' begin-selection
bind -t vi-copy 'y' copy-selection
set-option mode-keys vi
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
set-window-option -g mode-keys vi

Loading…
Cancel
Save