Created
April 22, 2017 15:41
-
-
Save brunoluiz/3b4e969591a8cd1421899dc7e576c03d to your computer and use it in GitHub Desktop.
.tmux-macos.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard | |
# https://robots.thoughtbot.com/tmux-copy-paste-on-os-x-a-better-future | |
# To copy/paste on OSX just brew install the following | |
# brew install reattach-to-user-namespace | |
set-option -g default-command "reattach-to-user-namespace -l zsh" | |
# load paste buffer to tmux | |
bind ] run "reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer" | |
# copy lines to the global clipboard | |
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy" | |
# 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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment