From f9cd9bb0cd7622342640f7de8a99ac514b610123 Mon Sep 17 00:00:00 2001 From: Felix Delattre Date: Thu, 9 Mar 2023 22:41:07 +0000 Subject: [PATCH] Update .tmux.conf --- dot_tmux.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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