summaryrefslogtreecommitdiffstats
path: root/.tmux-osx.conf
blob: 37b097849dbc8409c73883b24a019e2c73937a86 (plain) (blame)
1
2
3
4
5
6
7
8
# Fix OSX tmux copy issues
# Ref: https://blog.subash.com.au/vim-style-copy-paste-in-tmux/
set-option -g default-command "reattach-to-user-namespace -l ${SHELL}"
bind-key -T copy-mode-vi 'y' send-keys -X copy-pipe-and-cancel 'reattach-to-user-namespace pbcopy'

# ensure clipboard off to allow mouse copy
set-option -s set-clipboard off
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"