Hacker News new | ask | show | jobs
by kondu 2249 days ago
I've always wanted something like that, can you please share your config?
1 comments

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"

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