Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: autocompletion with remote hosts
- X-seq: zsh-users 14675
- From: Daniel Friesel <derf@xxxxxxxxxxxxxx>
- To: "Mr.SpOOn" <mr.spoon21@xxxxxxxxx>, zsh-users@xxxxxxx
- Subject: Re: autocompletion with remote hosts
- Date: Mon, 21 Dec 2009 18:35:24 +0000
- In-reply-to: <8f67b6f80912210936n62f8e4dbx3aee05da6164bb08@xxxxxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <8f67b6f80912210936n62f8e4dbx3aee05da6164bb08@xxxxxxxxxxxxxx>
On Mon, Dec 21, 2009 at 06:36:02PM +0100, Mr.SpOOn wrote:
> Hi,
> in bash I somehow managed to have autocompletion for remote hosts and
> directory when I used ssh and scp.
>
> I can't find a way to have the same in zsh.
> Can you help me?
The way I do this is:
> zstyle ':completion:*' hosts host1 host2 host3 ...
in .zshrc
Theoretically, the completion for ssh/scp/etc. is also able to read the
hosts for completion directly from ~/.ssh/config or ~/.ssh/known_hosts,
however due to some fuckup (which so far noone could explain to me) it
never does this.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author