Skip to content

Instantly share code, notes, and snippets.

@winmillwill
Created August 8, 2014 15:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save winmillwill/cdb6af0059d4f08196b1 to your computer and use it in GitHub Desktop.
Save winmillwill/cdb6af0059d4f08196b1 to your computer and use it in GitHub Desktop.
tmux config for yanking to clipboard
# Copy mode¬
setw -g mode-keys vi¬
bind ` copy-mode¬
unbind [¬
unbind p¬
bind p paste-buffer¬
bind -t vi-copy H start-of-line¬
bind -t vi-copy L end-of-line¬
bind -t vi-copy v begin-selection¬
bind -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"¬
bind -t vi-copy Escape cancel¬
bind y run "tmux save-buffer - | reattach-to-user-namespace pbcopy"¬
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment