Skip to content
A simple way to get tmux copy and paste to work. Uses netcat for the servers.
JavaScript Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.tmux.conf
copyoff.sh script for turning off listener Apr 12, 2013
copyon.sh
readme.md

readme.md

tmux copy and paste on OSX

Instead of using reattach-user-space I built a simple way to do it with an netcat on loop running in the background that's launched on bootup, or you can just run it before running tmux. Server runs on port 5482 and port 5483.

Do these once

Put copyon.sh in ~/bin

Add the following to ~/.tmux.conf

unbind p
bind -t vi-copy 'v' begin-selection
bind -t vi-copy 'y' copy-pipe 'nc localhost 5682'
bind p run-shell 'nc localhost 5683; nc localhost 5683 | tmux load-buffer -' \; paste-buffer;

##Now run:

copyon.sh
tmux 

You now have interop with copy and paste between tmux and OSX.

You can’t perform that action at this time.