diff --git a/.tmux.conf b/.tmux.conf index 18263e0..49ebda0 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -53,7 +53,6 @@ set-option -g update-environment "DISPLAY SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PI # Set audible bell on, and visual bell off because it is slooooowwwww set-option -g bell-action any -set-option -g bell-on-alert on set-option -g visual-bell off set-option -g visual-silence off set-option -g visual-activity off @@ -93,7 +92,7 @@ set -sg escape-time 0 bind-key -T copy-mode-vi Home send -X start-of-line bind-key -T copy-mode-vi End send -X end-of-line # Sync copy mode and PRIMARY selection -bind-key -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe "xsel -i -p -b" -bind-key -T copy-mode-vi Enter send -X copy-pipe "xsel -i -p -b" -bind-key -T copy-mode-vi y send -X copy-pipe "xsel -i -p -b" +bind-key -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel "xsel -i -p -b" +bind-key -T copy-mode-vi Enter send -X copy-pipe-and-cancel "xsel -i -p -b" +bind-key -T copy-mode-vi y send -X copy-pipe-and-cancel "xsel -i -p -b"