From 288e14def42a89799df84e64d56534cf1c012db4 Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Wed, 17 Oct 2018 11:17:57 +0100 Subject: [PATCH] Allow tmux to copy and paste to x clipboard --- tmux/.tmux.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 50edc47..f0c331b 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -35,6 +35,11 @@ set -g mouse on # Dont rename windows (allows setting mail for instance) set -g allow-rename off +# move x clipboard into tmux buffer +bind C-p run "tmux set-buffer \"$(xclip -o)\"" +# move tmux copy buffer into x clipboard +bind C-y run "tmux save-buffer - | xclip -i" + #################################### -- 2.45.2