Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add keybindings to sync tmux buffer and X clipboard

  • Loading branch information...
commit 21b552cae59b114d975a104078ae4a79062d941f 1 parent b695445
@dmedvinsky authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 tmux.conf
View
6 tmux.conf
@@ -57,6 +57,12 @@ unbind p
bind p paste-buffer
bind -t vi-copy v begin-selection
bind -t vi-copy y copy-selection
+
+# Copy tmux paste buffer to CLIPBOARD
+bind C-c run "tmux show-buffer | xclip -i -selection clipboard"
+# Copy CLIPBOARD to tmux paste buffer and paste tmux paste buffer
+bind C-v run "tmux set-buffer -- \"$(xclip -o -selection clipboard)\"; tmux paste-buffer"
+
# }}}
# Options {{{
Please sign in to comment.
Something went wrong with that request. Please try again.