From f3ee631c141a3fab8e79532fe75e77965157c5de Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Sat, 4 Jan 2020 22:33:04 -0500 Subject: tmux: linux copy-paste --- templates/.tmux.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/.tmux.conf b/templates/.tmux.conf index 09243b0..32c627e 100644 --- a/templates/.tmux.conf +++ b/templates/.tmux.conf @@ -47,4 +47,8 @@ bind-key L resize-pane -R 15 # copy/paste with pbcopy bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy" bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "pbcopy" +{{ else if eq .OS "linux" }} +# copy/paste with wl-copy +bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "wl-copy" +bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "wl-copy" {{ end }} -- cgit v1.2.3