Skip to content

Instantly share code, notes, and snippets.

@tophopstop
tophopstop / gist:a9c97250f76083b1f7cae7336cfa7bae
Last active Aug 17, 2017
Set Up Copy to MacOs Clipboard with tmux 2.5 on MacOs Sierra
View gist:a9c97250f76083b1f7cae7336cfa7bae
# get 'reattach-to-user-namespace' util with home brew
brew install reattach-to-user-namespace
# then, add these to your .tmux.conf and start/restart
setw -g mode-keys vi
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -Tcopy-mode-vi 'y' send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
# how to use
# 1. enter copy mode: control+b, [
You can’t perform that action at this time.