aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2019-03-21 13:29:41 +0000
committerJuan J. Martinez <jjm@usebox.net>2022-05-29 22:57:28 +0100
commit0d13287f7437f1e09d8f647dc5a62043bda7ac44 (patch)
tree1616c117a1da92781dad9dc3671625b850bb2bb0
parentdab85e2b1b88fd78a8ba096579ebbb791fca9ad6 (diff)
downloaddotnvim-0d13287f7437f1e09d8f647dc5a62043bda7ac44.tar.gz
dotnvim-0d13287f7437f1e09d8f647dc5a62043bda7ac44.zip
Copy & Paste in X with xclip
-rw-r--r--tmux.conf4
1 files changed, 4 insertions, 0 deletions
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