From 8bce4d5bfdb89f07067a0a183c1b79b808c47f80 Mon Sep 17 00:00:00 2001 From: murgi Date: Fri, 12 May 2017 11:29:03 +0200 Subject: [PATCH] Squashed 'tmux/' changes from 57c4310..83cebed 83cebed Fix random characters on copy ce1870c Adjust config for 2.4 git-subtree-dir: tmux git-subtree-split: 83cebed9b561bc414f8f126298cf654bb8a5b4e8 --- .tmux.conf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index ff4ff46..241b989 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -38,9 +38,9 @@ set -g mouse on # Vi copypaste mode set-window-option -g mode-keys vi -bind-key -t vi-copy 'v' begin-selection -bind-key -t vi-copy 'y' copy-selection -bind -t vi-copy y copy-pipe 'xclip -in -selection clipboard' +bind-key -Tcopy-mode-vi 'v' send -X begin-selection +bind-key -Tcopy-mode-vi 'y' send -X copy-selection +bind -Tcopy-mode-vi y send -X copy-pipe "xclip -i -sel p -f | xclip -i -sel c" \; display-message "copied to system clipboard" # Smart pane switching with awareness of vim splits # See: https://github.com/christoomey/vim-tmux-navigator @@ -55,6 +55,7 @@ bind -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R" bind C-p run "tmux set-buffer \"$(xclip -o)\"; tmux paste-buffer" # move tmux copy buffer into x clipboard bind C-y run "tmux save-buffer - | xclip -i" +set-option -s set-clipboard off source-file ~/.tmux/.tmux_config_powerline