[tmux] automatically copy to pasteboard
diff --git a/.tmux.conf b/.tmux.conf
index b21e4d2f..803f2593 100644
--- a/.tmux.conf
+++ b/.tmux.conf
@@ -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