remotecopy – Copy from remote terminals with ease – One solution



remotecopy – Copy from remote terminals with ease – One solution

0 0


remotecopy_present

Presentation given to LA.pm in May 2013

On Github justone / remotecopy_present

remotecopy

Copy from remote terminals with ease

 

LA Perl Mongers

Wednesday May 29, 2013

 

by Nate Jones

The Problem

I want to copy data from remote terminalsas easily as local terminals.

One solution

remote-pbcopy

Run `pbcopy` as a LaunchAgent Forward port 12345 via SSH $ cat | nc -q1 localhost 12345 Done!

My solution

remotecopy

Run `remotecopyserver -x start` Forward port 12345 via SSH $ cat | remotecopy Paste secret Done!

Help

Usage:
     remotecopy [options] [datatocopy]

     Options:
      -n --non-interactive      Don't prompt for secret if not found, communicate
                                with exit code.
      -s --secret <secret>      Remote copy secret, as provided by the server.
      -p --port <port>          Port to connect to (defaults to 12345).
      -a --address <ip addr>    IP address to connect to (defaults to 127.0.0.1).
      -c --chomp                Chomp the last newline, if only one exists.

     Documentation options:
      -h --help -?              brief help message
         --man                  full documentation
					

Vim Plugin

  • <leader>y - Copy range or whole file
  • <leader>r - Copy register

 

 

 

Server secret is saved in vim memory,so subsequent copies won't prompt.

THE CODE

THE END

by Nate Jones