From ba546d478e143f99357ddbbcfa0cdd303d51d148 Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Mon, 11 Jun 2018 21:55:00 -0700 Subject: [PATCH] Add tmux copy/pasta. --- dotfiles/tmux.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dotfiles/tmux.conf b/dotfiles/tmux.conf index adafb95..d1682b7 100644 --- a/dotfiles/tmux.conf +++ b/dotfiles/tmux.conf @@ -57,3 +57,7 @@ bind M \ set -g mouse-select-pane off \;\ set -g mouse-select-window off \;\ display 'Mouse: OFF' + +# tmux X clipboard integration +bind C-c run "tmux show-buffer | xsel -i -b" +bind C-v run "tmux set-buffer -- \"$(xsel -o -b)\"; tmux paste-buffer"