Better tab completion for scp file names

  • January 7, 2009
Table of Contents

As a lot of you may know, zsh offers tab completion for scp: filenames.
Normally it would connect and then list the files. As you can imagine this isn’t really that efficient.
The solution is quite simple… By adding

Host *
ControlMaster auto
ControlPath ~/.ssh/master-%r@%h:%p

to the top of your .ssh/config all your connection will automatically create a master connection. As such all subsequent connections will pass through the master. Who’d know it makes scp like browsing a local filesystem. Combined with vim’s netrw I’d say that’s pretty neat.

comments powered by Disqus

Related Posts

awesome with gentoo-prefix

I just updated a whole bunch of ebuilds for gentoo-prefix you can find the overlay here.

Just clone it and put it somewhere in your $EPREFIX/usr/local/portage then add that folder to your make.conf

Read More: awesome with gentoo-prefix

A critical look at Atom.io

I’m currently sitting at my Macbook Air 2013 writing this, which supposedly has a Haswell i7 ultramobile inside. According to my standards that’s a pretty decent amount of computing power.

Read More: A critical look at Atom.io