aboutsummaryrefslogtreecommitdiff
path: root/.tmux.conf
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@debian.org>2013-06-24 15:43:09 -0400
committerRyan Kavanagh <rak@debian.org>2013-06-24 15:43:09 -0400
commitbe0382c2f0096a7f6742ede931d2f97b717321ab (patch)
treefc4359af1e413d95826f24e0acbd7769f511290d /.tmux.conf
parentAdded work layout for nu (diff)
Update tmux.conf to copy to/from x clipboard
Diffstat (limited to '.tmux.conf')
-rw-r--r--.tmux.conf5
1 files changed, 5 insertions, 0 deletions
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"