Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ssh host completion: ~/.ssh/config vs /etc/hosts
On 2015-08-10 12:50:39 -0700, Bart Schaefer wrote:
> On Aug 10, 12:33pm, Moritz Bunkus wrote:
> }
> } I just noticed this interesting thing: if certain hosts are listed in
> } /etc/hosts then the ssh completion will complete _but not list_ hosts in
> } ~/.ssh/config that have the same prefix.
>
> At the very top of _ssh_hosts is:
>
> # If users-hosts matches, we shouldn't complete anything else.
>
> The users-hosts completion looks at /etc/hosts and ~/.ssh/known_hosts,
> so hosts from your ~/.ssh/config are only completed when no possible
> matches are found in either of those other places.
This behavior doesn't make much sense.
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author