commit ce3b9403acc94b620c927dbb16a75b0842b2bdeb parent 1dec66e0e9b81cdf18beae2e1ad1b5dcc25a3d86 Author: Anders Damsgaard <andersd@riseup.net> Date: Wed, 24 May 2017 12:32:51 -0400 update for changes in tmux-yank Diffstat:
M | .tmux.conf | | | 8 | +++++--- |
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/.tmux.conf b/.tmux.conf @@ -21,12 +21,14 @@ unbind [ bind Escape copy-mode unbind p #bind p paste-buffer -bind-key -t vi-copy 'v' begin-selection +#bind-key -t vi-copy 'v' begin-selection #bind-key -t vi-copy 'y' copy-selection +bind-key -T copy-mode-vi v send-keys -X begin-selection +#bind-key -T copy-mode-vi y send-keys -X copy-selection # Copy -if-shell 'uname | grep -qi Linux && which xclip > /dev/null' 'bind-key -t vi-copy y copy-pipe "DISPLAY=:0 xclip -i -sel clipboard"' -if-shell 'uname | grep -qi Darwin && which reattach-to-user-namespace > /dev/null' 'bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"' +if-shell 'uname | grep -qi Linux && which xclip > /dev/null' 'bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "DISPLAY=:0 xclip -i -sel clipboard"' +if-shell 'uname | grep -qi Darwin && which reattach-to-user-namespace > /dev/null' 'bind-key -T copy-mode-vi y copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"' # Paste if-shell 'uname | grep -qi Linux && which xclip > /dev/null' 'bind p run "DISPLAY=:0 xclip -o | tmux load-buffer - ; tmux paste-buffer"'