I am quite happy with the Terminal changes in El Capitan (see e.g. this question).
However, i can't figure out how to enable copying to system clipboard from within Tmux. For instance, now that I am able to select text within Tmux properly by mouse, how can i copy selected text to clipboard as well, in addition to Tmux's own buffer?
I have the following in my
setw -g mode-mouse on set -g mouse-select-pane on set -g mouse-resize-pane on set -g mouse-select-window on setw -g mode-keys vi bind-key -t vi-copy 'v' begin-selection bind-key -t vi-copy 'y' copy-selection
I tried modifying the last line to
bind-key -t vi-copy 'y' copy-selection \; copy-pipe "pbcopy"
but it didn't really work. Would be grateful for suggestions!