Add bindkeys for buffer.

This commit is contained in:
Jeremy Gardais 2017-12-12 09:27:44 +01:00
parent d8542c9c75
commit b12376854a
1 changed files with 2 additions and 0 deletions

View File

@ -85,9 +85,11 @@ bind-key C-p previous-window
#Copy tmux buffer to CLIPBOARD
unbind C-y
bind-key C-y run-shell -b "tmux save-buffer - | xclip -i -selection clipboard"
bind-key y run-shell -b "tmux save-buffer - | xclip -i -selection clipboard"
#Copy CLIPBOARD to tmux buffer and paste-it in tmux
unbind C-v
bind-key v run "tmux set-buffer -- \"$(xclip -o -selection clipboard)\"; tmux paste-buffer"
bind-key C-v run "tmux set-buffer -- \"$(xclip -o -selection clipboard)\"; tmux paste-buffer"
# Copy-mode