From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2924 invoked from network); 7 Jun 2001 16:35:45 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 7 Jun 2001 16:35:45 -0000 Received: (qmail 4152 invoked by alias); 7 Jun 2001 16:35:12 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3916 Received: (qmail 4139 invoked from network); 7 Jun 2001 16:35:11 -0000 X-Authentication-Warning: candle.brasslantern.com: schaefer set sender to lantern@shell10.ba.best.com using -f From: "Bart Schaefer" Message-Id: <1010607163345.ZM7911@candle.brasslantern.com> Date: Thu, 7 Jun 2001 16:33:44 +0000 In-Reply-To: =?iso-8859-1?Q?=3C20010606173424=2EA675=40suse=2Ecom=3E?= =?iso-8859-1?Q?Comments=3A_In_reply_to__Mads_Martin_J=F8rgensen_=3Cmmj=40?= =?iso-8859-1?Q?suse=2Ecom=3E?= =?iso-8859-1?Q?________=22Re=3A_2_newbie_=3Fs=22_=28Jun__6=2C__5=3A34pm?= =?iso-8859-1?Q?=29?= References: <02fa01c0eedc$c41b1960$5219a8c0@dthiel> <20010607012609.A13243@idiocy.org> <20010606173424.A675@suse.com> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-users@sunsite.dk Subject: Re: 2 newbie ?s MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On Jun 6, 5:34pm, Mads Martin J=F8rgensen wrote: } Subject: Re: 2 newbie ?s } } zstyle -e ':completion:*:ssh:*' hosts 'reply=3D($(sed -e "/^#/d" -e "s/= } .*\$//" -e "s/,/ /g" /etc/ssh_known_hosts ~/.ssh/known_hosts } ~/.ssh/known_hosts2 2>/dev/null))' = } "Why make things difficult, when it is possible to make them cryptic an= d } totally illogic, with just a little bit more effort." } -- A. P. J. In that spirit: zstyle -e ':completion:*:ssh:*' hosts 'reply=3D( ${=3D${${(f)"$(cat {/etc/,{/etc/ssh_,~/.ssh/}known_}hosts(|2)(N) \ <<(ypcat hosts 2>/dev/null))"}%%[# ]*}//,/ } )' That might actually be a bit *too* thorough ... -- = Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net = =