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.
Type Name Latest commit message Commit time
Failed to load latest commit information.
.tmux.conf script for turning off listener Apr 12, 2013

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 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:

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

You can’t perform that action at this time.