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
- X-seq: zsh-workers 23597
- From: Clint Adams <clint@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx, Pierre Habouzit <madcoder@xxxxxxxxxx>
- Subject: Re: Bug#430146: zsh: please add .ssh/config Hosts to the hosts zstyle completion
- Date: Mon, 25 Jun 2007 10:32:21 -0400
- In-reply-to: <20070624194406.GA73513@xxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-workers@xxxxxxxxxx, Pierre Habouzit <madcoder@xxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20070622180648.14337.68045.reportbug@localhost> <20070622211507.GA16349@xxxxxxxxxxx> <20070622222216.GA9656@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20070623074721.GA28769@xxxxxxxxxxx> <20070623113320.GA25562@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20070624115727.GA31510@xxxxxxxxxxx> <20070624194406.GA73513@xxxxxxxxxxxxxxxxxxxx>
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