From 22234bb8b97616dddaba73f1f0a2f3dc482178a9 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Tue, 19 May 2015 22:46:38 +0200 Subject: [PATCH] New bind key to paste tmux buffer. --- tmux.conf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tmux.conf b/tmux.conf index 89ef6e0..461cc96 100644 --- a/tmux.conf +++ b/tmux.conf @@ -120,15 +120,20 @@ unbind C-p bind-key C-p previous-window #Copy tmux buffer to CLIPBOARD -unbind C-c +unbind C-y 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 C-v run "tmux set-buffer -- \"$(xclip -o -selection clipboard)\"; tmux paste-buffer" # Copy-mode bind-key -t vi-copy 'v' begin-selection bind-key -t vi-copy 'y' copy-selection +# Paste buffer +unbind P +bind-key P run "tmux paste-buffer" + # Window selection by name unbind b bind-key b command-prompt "find-window -NT '%%'"