Skip to content

A simple way to get tmux copy and paste to work. Uses netcat for the servers.

Notifications You must be signed in to change notification settings

base698/tmux-copy-paste-mac-osx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A simple way to get tmux copy and paste to work. Uses netcat for the servers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published