Hacker News new | ask | show | jobs
by jonfw 2249 days ago
This is the section of my config that sets up using the clipboard for tmux buffers. It won't work as is unless you're using both fish shell and Mac, but this should at least give you some good keywords to google and find documentation on how to do it for your system

#makes clipboard work

set-option -g default-command "reattach-to-user-namespace -l fish"

bind-key -T copy-mode-vi 'v' send -X begin-selection

bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"

1 comments

If you’re using Mojave or later you don’t need `reattach-to-user-namespace` anymore :)