From b12376854a9db92f003cb2b54da8802458cd86c6 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Tue, 12 Dec 2017 09:27:44 +0100 Subject: [PATCH] Add bindkeys for buffer. --- tmux.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tmux.conf b/tmux.conf index 6145c05..bc4bee3 100644 --- a/tmux.conf +++ b/tmux.conf @@ -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