From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12355 invoked from network); 28 Aug 2000 08:10:18 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 28 Aug 2000 08:10:18 -0000 Received: (qmail 5787 invoked by alias); 28 Aug 2000 08:09:24 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3403 Received: (qmail 5780 invoked from network); 28 Aug 2000 08:09:24 -0000 X-Authentication-Warning: kempelen.iit.bme.hu: airwin set sender to airwin@inf.bme.hu using -f Sender: airwin@inf.bme.hu To: Thomas =?iso-8859-1?q?K=F6hler?= Cc: zsh-users@sunsite.auc.dk Subject: Re: ssh completion References: <2gizolzu74u.fsf@dacia.kom.auc.dk> <20000826233706.A18856@picard.franken.de> From: Nemeth Ervin Date: 28 Aug 2000 10:09:16 +0200 In-Reply-To: Thomas =?iso-8859-1?q?K=F6hler's?= message of "Sat, 26 Aug 2000 23:37:06 +0200" Message-ID: User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.6 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Thomas K=F6hler writes: > On Sat, Aug 26, 2000 at 09:59:16PM +0200, > Claus Alboege wrote: > >=20 > > Could anyone tell, how I get zsh to read hostnames from > > ~/.ssh/known_hosts instead of /etc/hosts using zstyle? >=20 > zstyle '*ssh*' hosts $(sed -e 's/ .*//' ~/.ssh/known_hosts) >=20 > Not perfect, but you should get the idea... Here is a bit better one: zstyle '*ssh*' hosts $(sed -e '/^#/d s/ .*$// s/,/ /g' /etc/ssh_known_hosts ~/.ssh/known_hosts) HTH, --=20 Ervin "Intelligenti pauca."