# vim: syntax=conf # Setup 'v' to begin selection as in Vim bind -T copy-mode-vi y send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy" # Update default binding of `Enter` to also use copy-pipe unbind -T copy-mode-vi Enter bind-key -T copy-mode-vi Enter send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy" # Allow pbcopy inside of session set-option -g default-command "reattach-to-user-namespace -l zsh"