From 88ccd80de888c6f7fd931b2694bd7d0719dab6c2 Mon Sep 17 00:00:00 2001 From: Ralph Azucena Date: Thu, 3 May 2018 04:40:23 +0100 Subject: [PATCH] Enabled vi-mode and mouse mode to share clipboard - Selecting with the mouse copies the text to the OS clipboard - Selecting with vi-mode copies the text to the OS clipboard --- .tmux.conf.local | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.tmux.conf.local b/.tmux.conf.local index 355514d..d30ea16 100644 --- a/.tmux.conf.local +++ b/.tmux.conf.local @@ -248,6 +248,8 @@ unbind C-a set -g prefix2 C-space bind C-space send-prefix -2 set -g history-limit 8000 # boost history +run -b 'tmux bind -t vi-copy y copy-pipe "xclip -in -selection clipboard"' +run -b 'tmux bind -t vi-copy MouseDragEnd1Pane copy-pipe "xclip -in -selection clipboard"' ### -- navigation ----------------------------------------------------------------