diff options
author | Ryan Kavanagh <rak@debian.org> | 2013-06-24 15:43:09 -0400 |
---|---|---|
committer | Ryan Kavanagh <rak@debian.org> | 2013-06-24 15:43:09 -0400 |
commit | be0382c2f0096a7f6742ede931d2f97b717321ab (patch) | |
tree | fc4359af1e413d95826f24e0acbd7769f511290d /.tmux.conf | |
parent | Added work layout for nu (diff) |
Update tmux.conf to copy to/from x clipboard
Diffstat (limited to '.tmux.conf')
-rw-r--r-- | .tmux.conf | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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" |