Skip to content

Instantly share code, notes, and snippets.

@ndunks
Created October 12, 2022 03:56
Show Gist options
  • Save ndunks/8bc7aaeb58939f74ed612d0b042b1a81 to your computer and use it in GitHub Desktop.
Save ndunks/8bc7aaeb58939f74ed612d0b042b1a81 to your computer and use it in GitHub Desktop.
set -g mouse on
# Select then right click to set clipboard
set-option -s set-clipboard off
bind-key -T copy-mode MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -selection clipboard -i"
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -selection clipboard -i"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment