]> git.friedersdorff.com Git - max/dotfiles.git/commitdiff
Allow tmux to copy and paste to x clipboard
authorMaximilian Friedersdorff <max@friedersdorff.com>
Wed, 17 Oct 2018 10:17:57 +0000 (11:17 +0100)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Wed, 17 Oct 2018 10:17:57 +0000 (11:17 +0100)
tmux/.tmux.conf

index 50edc479a2e28861fb9249dae0cd7e5e4deccb3a..f0c331b9c4655916c704d670cc3fe8365eed400c 100644 (file)
@@ -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"
+
 
 
 ####################################