From 18ee985eea473a9fded49e07130e5caa7b60243b Mon Sep 17 00:00:00 2001 From: Tom Vincent Date: Mon, 22 Apr 2013 16:16:55 +0800 Subject: [PATCH] Add clipboard integration via xsel --- tmux.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tmux.conf b/tmux.conf index ea43d7b..ec7e062 100644 --- a/tmux.conf +++ b/tmux.conf @@ -28,3 +28,7 @@ source-file "$XDG_CONFIG_HOME/tmux/vendor/tmux-colors-solarized/tmuxcolors-256.c # Reload config bind r source-file "$XDG_CONFIG_HOME/tmux/tmux.conf" + +# Copy/paste to/from the X clipboard +bind C-y run "tmux save-buffer - | xsel --clipboard" +bind C-p run "tmux set-buffer \"$(xsel --clipboard)\"; tmux paste-buffer"