Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
autocompletion with ssh and .ssh/config
- X-seq: zsh-workers 28085
- From: David Duponchel <d.duponchel@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: autocompletion with ssh and .ssh/config
- Date: Sun, 18 Jul 2010 00:59:45 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=wRnV2AOE4zAf9nXxxlnOhqdL3S9SpdLRick0dijeoKk=; b=m8ci2OuQwld0PxY0LoJHrGwQ8r4EnxHjRKXrK8tgn4pdGzs7NLfradvKN7Y0ZZCZBG wt4uQg6Hc/MBT67/rJ+Nu9tyMpDnOW60vzVjZV6FNeRPtSu2/thPiHcZu0OMN7TzSv/P JwceOtjaGgBqpfPmBrUbwvf0AubmuM1Lotpq8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Rw2nxrkCZikxao97ASK91uwKVrCSQ9blh/i50GHhCcgdIsBpq9f15cVt767S1kp2uh gMSIdT1a9DokY5o6mCput7CePOLOdUDj8PR9q5QW+wJibJ3+E18MbBcoqoKug9DIuF1n BNifhazqr20BzBD++edNNQ0mU3l46WsadrlHE=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hi,
I have some hosts defined in my .ssh/config file. Example :
Host bar
HostName 1.2.3.4
Host baz
HostName 2.3.4.5
When I type ssh <tab>, only my users and hosts in /etc/hosts are displayed
(my .ssh/config is ignored).
With ssh ba<tab> the autocompletion is correctly done and propose bar and
baz.
Same behavior with ssh user@<tab> and ssh user@ba<tab>
Expected : Hosts from ssh/config are proposed by the autocompletion with the
other hosts.
I did some research and the root of the problem seems to be in
Completion/Unix/Command/_ssh, function _ssh_hosts : the function exists too
early (before reading ssh/config).
Used .zshrc :
autoload -U compinit
compinit
Tested env : zsh 4.3.10 and 4.3.10-dev-1, OS : Archlinux.
Thanks
David Duponchel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author