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

2007-06-25 Thread Clint Adams
On Sat, Jun 23, 2007 at 12:33:21PM +0100, Pierre Habouzit wrote: > Anyways, I'm not using it anymore because I fancy the > .ssh/known_hosts more, but I miss it :) We could do something like this to generate matches from ~/.ssh/config . Anyone have better ideas? Index: Completion/Unix/Type/_host

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

2007-06-23 Thread Pierre Habouzit
On Sat, Jun 23, 2007 at 03:47:21AM -0400, Clint Adams wrote: > On Fri, Jun 22, 2007 at 11:22:16PM +0100, Pierre Habouzit wrote: > > I mean it was part of my "style" widget or whatever name it has. I > > used it throug zstyle 'completion:*:hosts: hosts $hosts > > > > but that overrides the defa

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

2007-06-23 Thread Clint Adams
On Fri, Jun 22, 2007 at 11:22:16PM +0100, Pierre Habouzit wrote: > I mean it was part of my "style" widget or whatever name it has. I > used it throug zstyle 'completion:*:hosts: hosts $hosts > > but that overrides the default, and I'd like to merge it, and I think > it's pretty useful as a de

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

2007-06-22 Thread Pierre Habouzit
On Fri, Jun 22, 2007 at 05:15:07PM -0400, Clint Adams wrote: > > all is in the title, I'd like to have the Hosts 'arguments' from > > .ssh/config to be added in the _hosts completion if possible. > > > > sth like: > > hosts=(${${${$(grep '^Host' ~/.ssh/config)}##Host }##[*0-9]*}) > > > > wor

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

2007-06-22 Thread Clint Adams
> all is in the title, I'd like to have the Hosts 'arguments' from > .ssh/config to be added in the _hosts completion if possible. > > sth like: > hosts=(${${${$(grep '^Host' ~/.ssh/config)}##Host }##[*0-9]*}) > > works, not sure if there isn't better actually :) I don't think that does wha

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

2007-06-22 Thread Pierre Habouzit
Package: zsh Version: 4.3.4-8 Severity: normal all is in the title, I'd like to have the Hosts 'arguments' from .ssh/config to be added in the _hosts completion if possible. sth like: hosts=(${${${$(grep '^Host' ~/.ssh/config)}##Host }##[*0-9]*}) works, not sure if there isn't better actua