The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]

Article Feedback - scp tricks
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 zsh has Filename Completion for scp/rcp
Author: Stephen Roome 
Date:   02-04-03 10:31

Once you've copied your keys about so that you don't need
passwords (hey that's really not very secure though!) then you can get filename completion for scp with zsh.

If you installed zsh from the ports collection and your fpath
variable is properly configured then you should be able to do:

autoload -U compinit
compinit

then try scp user@host:<TAB>

Don't look as surprised as I did though, I found it by accident!

Reply To This Message
 
 OOPS: Re: zsh has Filename Completion for scp/rcp
Author: Stephen Roome 
Date:   02-04-03 10:33

after the scp user@host:--TABCOMPLETE--

I put < TAB > and forgot this strips quotes...

Reply To This Message
 
 Re: zsh has Filename Completion for scp/rcp
Author: Dan Langille 
Date:   02-04-03 12:11

Stephen Roome wrote:
>
> Once you've copied your keys about so that you don't need
> passwords (hey that's really not very secure though!) then
> you can get filename completion for scp with zsh.

It is very secure if you have passphrases on your private key. In fact, it's more secure than having a password.

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org