Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug#430146: zsh: please add .ssh/config Hosts to the hosts zstyle completion



On Sun, Jun 24, 2007 at 12:44:06PM -0700, Phil Pennock wrote:
> I think that:
>  ${=${${(M)${(f)"$(<~/.ssh/config)"}:#Host*}#Host }:#*\**}
> should be:
>  ${${=${(M)${(f)"$(<~/.ssh/config)"}:#Host*}#Host }:#*[\*\?]*}

> This splits on $IFS earlier so that the outer :# filter applies on a
> per-item basis instead of per-line, and adds '?' to the filter pattern.

That sounds good.  Is limiting it to ~/.ssh/config with a yes/no style
too inflexible?



Messages sorted by: Reverse Date, Date, Thread, Author