# vim: syntax=conf # Setup 'v' to begin selection as in Vim bind -T copy-mode-vi v begin-selection bind -T copy-mode-vi y copy-pipe "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 copy-pipe "reattach-to-user-namespace pbcopy" # Allow pbcopy inside of session set-option -g default-command "reattach-to-user-namespace -l zsh"