Skip to content

Instantly share code, notes, and snippets.

@christoomey
Created June 21, 2013 14:41
Show Gist options
  • Save christoomey/5831632 to your computer and use it in GitHub Desktop.
Save christoomey/5831632 to your computer and use it in GitHub Desktop.
Tmux copy-pipe
# Use vim keybindings in copy mode
setw -g mode-keys vi
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
unbind -t vi-copy Enter
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment