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

ruby-enterprise/ruby-1.8.7 in fedora 15 or archlinux

The following bugs occur when trying to install ruby enterprise on distros like fedora 15 or archlinux:

Read More

New Skype themes in OSX

So yesterday skype released a new version of Skype for Mac. You con get it here.

Read More