Skip to content

Instantly share code, notes, and snippets.

@pgib pgib/.tmux.conf

Last active Dec 2, 2017
Embed
What would you like to do?
Nice tmux copy and paste using OS X clipboard
# =======================================================================
# vim-style copy and paste
setw -g mode-keys vi
bind ] paste-buffer
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-pipe "reattach-to-user-namespace pbcopy"
bind-key -t vi-copy Space rectangle-toggle
# Update default binding of `Enter` to also use copy-pipe
unbind -t vi-copy Enter
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
# =======================================================================

Be sure to first run:

brew install reattach-to-user-namespace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.