diff options
| -rw-r--r-- | .tmux-osx.conf | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.tmux-osx.conf b/.tmux-osx.conf index 27a3bde..37b0978 100644 --- a/.tmux-osx.conf +++ b/.tmux-osx.conf @@ -1,4 +1,8 @@ # Fix OSX tmux copy issues # Ref: https://blog.subash.com.au/vim-style-copy-paste-in-tmux/ -set -g default-command "reattach-to-user-namespace -l ${SHELL}" +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" |
