New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Select and Copy from Remote Session #117
Comments
Hey, that looks pretty cool. I think the last 2 steps are fine. |
Hi @faxotherapy , I followed the 4 steps but it still did not work, can you describe the first step more detailedly? |
Hello, I only have implemented the function on my MacOS platform. I haven't tried under GNU/Linux. I created a file called local.pbcopy.9999.plist with the following content: <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>local.pbcopy.9999</string>
<key>Program</key>
<string>/usr/bin/pbcopy</string>
<key>StandardOutPath</key>
<string>/tmp/pb9999.out</string>
<key>StandardErrorPath</key>
<string>/tmp/pb9999.err</string>
<key>Sockets</key>
<dict>
<key>Listeners</key>
<dict>
<key>SockNodeName</key>
<string>localhost</string>
<key>SockServiceName</key>
<string>9999</string>
</dict>
</dict>
<key>inetdCompatibility</key>
<dict>
<key>Wait</key>
<false/>
</dict>
</dict>
</plist> Then, I put the file in folder $ cd ~/Library/LaunchAgents
$ launchctl load local.pbcopy.9999.plist
$ launchctl list | grep 9999
- 0 local.pbcopy.9999
|
Hi,
thanks a lot for the plug-in. I'd like to select text and copy (transfer) it from a remote session to my local session. Although the method presented below works successfully for me I'd like to know your opinion on its last two steps; steps 3 and 4.
The first boring steps:
remoteforward=9997 localhost:9999
set in my SSH config file. FYI: if no config file, then:ssh -R 9997:localhost:9999 …@…
The fun part…
set -g @override_copy_command 'nc localhost 9997'
in my remote tmux.conf file and reload.The text was updated successfully, but these errors were encountered: