From 0d13287f7437f1e09d8f647dc5a62043bda7ac44 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Thu, 21 Mar 2019 13:29:41 +0000 Subject: Copy & Paste in X with xclip --- tmux.conf | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tmux.conf') diff --git a/tmux.conf b/tmux.conf index b7f6d8f..a8fb21e 100644 --- a/tmux.conf +++ b/tmux.conf @@ -12,6 +12,10 @@ set -g default-terminal "xterm-256color" # xterm-style function key sequences setw -g xterm-keys on +# sane copy & paste in X (requires xclip) +set-option -s set-clipboard off +bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -se c -i" + # Automatically set window title set-window-option -g automatic-rename on set-option -g set-titles on -- cgit v1.2.3