diff --git a/dot_tmux.conf b/dot_tmux.conf index 019f2ce..7746d35 100644 --- a/dot_tmux.conf +++ b/dot_tmux.conf @@ -24,7 +24,8 @@ bind -r m resize-pane -Z set-window-option -g mode-keys vi bind-key -T copy-mode-vi 'v' send -X begin-selection # start selecting text with "v" -bind-key -T copy-mode-vi 'y' send -X copy-selection # copy text with "y" +#bind-key -T copy-mode-vi 'y' send -X copy-selection # copy text with "y" +bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard' unbind -T copy-mode-vi MouseDragEnd1Pane # don't exit copy mode after dragging with mouse