From be0382c2f0096a7f6742ede931d2f97b717321ab Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Mon, 24 Jun 2013 15:43:09 -0400 Subject: Update tmux.conf to copy to/from x clipboard --- .tmux.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.tmux.conf b/.tmux.conf index 3cd0926..730af54 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -54,3 +54,8 @@ set-window-option -g window-status-current-format "#[fg=colour235, bg=colour27] # Use 256 colours set -g default-terminal "screen-256color" + +# move x clipboard into tmux paste buffer +bind C-x run "tmux set-buffer \\"$(xclip -o)\\"; tmux paste-buffer" +# move tmux copy buffer into x clipboard +bind C-y save-buffer ~/.tmux-buffer \; run-shell "xsel -i -b <~/.tmux-buffer && rm ~/.tmux-buffer" -- cgit v1.2.3