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 0c8019395e1e5b1a2d3a1081ebe82ab57a6cd0bd
parent 758552b49222a78e175ebaafe198ee4c39009c83
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu, 14 May 2020 16:22:12 +0200

Add tmux bind for yanking to cclip

Diffstat:
M.tmux.conf | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/.tmux.conf b/.tmux.conf @@ -109,6 +109,7 @@ bind -T copy-mode-vi v send -X begin-selection # start "visual" with v # Copy (yank) with y bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "DISPLAY=:0 xclip -i" bind -T copy-mode-vi Y send-keys -X copy-pipe-and-cancel "DISPLAY=:0 xclip -i -selection clipboard" +bind -T copy-mode-vi c send-keys -X copy-pipe-and-cancel "cclip" 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"'