aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Burwell <ben@benburwell.com>2020-01-04 22:33:04 -0500
committerBen Burwell <ben@benburwell.com>2020-01-04 22:33:24 -0500
commitf3ee631c141a3fab8e79532fe75e77965157c5de (patch)
tree7689a65ee087f2c07768c6a9aa91ebce23fbd922
parent620b5c791142d658563934d77953e4ddaaf91b08 (diff)
tmux: linux copy-paste
-rw-r--r--templates/.tmux.conf4
1 files changed, 4 insertions, 0 deletions
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 }}