Created
August 8, 2014 15:28
-
-
Save winmillwill/cdb6af0059d4f08196b1 to your computer and use it in GitHub Desktop.
tmux config for yanking to clipboard
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
# 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