aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@debian.org>2015-02-21 11:46:24 -0500
committerRyan Kavanagh <rak@debian.org>2015-02-21 11:46:24 -0500
commitfc4e526020dc98746b188dcf9eb4b69506aef4ef (patch)
tree1586987fd364f70a8efce317f565bd8be9481797
parentRevert "Add ENSL" (diff)
Add paste from X to tmux
-rw-r--r--.tmux.conf2
1 files changed, 2 insertions, 0 deletions
diff --git a/.tmux.conf b/.tmux.conf
index c67d9a8..7782f60 100644
--- a/.tmux.conf
+++ b/.tmux.conf
@@ -57,6 +57,8 @@ set -g default-terminal "screen-256color"
# move tmux copy buffer into x clipboard
bind C-y save-buffer ~/.tmux-buffer \; run "xsel -i -b <~/.tmux-buffer && rm ~/.tmux-buffer"
+#Copy CLIPBOARD to tmux paste buffer and paste tmux paste buffer
+bind C-v run "tmux set-buffer -- \"$(xsel -o -b)\"; tmux paste-buffer"
bind C new-session