Created
July 24, 2019 13:54
-
-
Save carlweis/215d5ccc74d027f5f2ea2619e8ccfd15 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
For those of you finding this in 2018, with tmux 2.6, you don't need the reattach-to-user-namespace gymnastics anymore. This is all I need with iTerm2 (3.1.5), tmux (2.6) and macOS High Sierra (10.13.2). | |
In iTerm 2 preferences, first tab "General", enable "Applications in terminal may access clipboard". | |
# tmux 2.6 doesn't need the 'reattach-to-user-namespace' gymnastics | |
setw -g mode-keys vi | |
bind-key -T edit-mode-vi Up send-keys -X history-up | |
bind-key -T edit-mode-vi Down send-keys -X history-down | |
bind-key -T copy-mode-vi v send -X begin-selection | |
bind-key -T copy-mode-vi [ send-keys -X begin-selection | |
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy" | |
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy" | |
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "pbcopy" | |
bind-key -T copy-mode-vi ] send-keys -X copy-selection |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment