dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit d7026e3297d6b8ca300a4fdf98a80ddb9531ec05
parent c2baa2a95f8703765d5fc6cd4f24f0af994d2db0
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Fri, 27 Sep 2019 09:50:55 +0200

Use xclip bindings for clipboard by default

Diffstat:
M.tmux.conf | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.tmux.conf b/.tmux.conf @@ -138,12 +138,12 @@ bind -T copy-mode-vi M-d send -X halfpage-down # scroll down with M-d bind -T copy-mode-vi v send -X begin-selection # start "visual" with v # Copy (yank) with y -if-shell 'uname | grep -qi Linux && which xclip > /dev/null' 'bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "DISPLAY=:0 xclip -i -selection clipboard"' +bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "DISPLAY=:0 xclip -i -selection clipboard" if-shell 'uname | grep -qi Darwin' 'bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"' if-shell 'uname | grep -qi Cygwin' 'bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "cat > /dev/clipboard"' # Paste with C-a p or M-p -if-shell 'uname | grep -qi Linux && which xclip > /dev/null' 'bind p run "DISPLAY=:0 xclip -selection clipboard -o | tmux load-buffer - ; tmux paste-buffer"' +bind p run "DISPLAY=:0 xclip -selection clipboard -o | tmux load-buffer - ; tmux paste-buffer" if-shell 'uname | grep -qi Darwin && which reattach-to-user-namespace > /dev/null' 'bind p run "pbpaste | tmux load-buffer - ; tmux paste-buffer"' if-shell 'uname | grep -qi Darwin' 'bind -n M-p run "pbpaste | tmux load-buffer - ; tmux paste-buffer"' if-shell 'uname | grep -qi Cygwin' 'bind p run "cat /dev/clipboard | tmux load-buffer - ; tmux paste-buffer"'