From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23059 invoked from network); 7 Jun 2001 00:35:08 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 7 Jun 2001 00:35:08 -0000 Received: (qmail 26525 invoked by alias); 7 Jun 2001 00:34:43 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3915 Received: (qmail 26511 invoked from network); 7 Jun 2001 00:34:41 -0000 Date: Wed, 6 Jun 2001 17:34:24 -0700 From: Mads Martin =?iso-8859-1?Q?J=F8rgensen?= To: Alan Third , zsh-users@sunsite.dk Subject: Re: 2 newbie ?s Message-ID: <20010606173424.A675@suse.com> References: <02fa01c0eedc$c41b1960$5219a8c0@dthiel> <20010607012609.A13243@idiocy.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20010607012609.A13243@idiocy.org>; from alan@idiocy.org on Thu, Jun 07, 2001 at 01:26:09AM +0100 * Alan Third [Jun 06. 2001 17:26]: > On Wed, Jun 06, 2001 at 04:02:31PM -0700, David Thiel wrote: > > Yeah, I have something similar, but it won't complete the hostname if you > > have something directly before it, like dthiel@blablabla.com. If you just > > ping bla(tab), it'll work. That's what I'm trying to figure out. > > I use: > > zstyle ':completion:*:hosts' hosts $hosts > > Where $hosts holds the list of hostnames I want to use. > That seems to work perfectly with ssh alan@os and suchlike. Or how about this one: zstyle -e ':completion:*:ssh:*' hosts 'reply=($(sed -e "/^#/d" -e "s/ .*\$//" -e "s/,/ /g" /etc/ssh_known_hosts ~/.ssh/known_hosts ~/.ssh/known_hosts2 2>/dev/null))' -- Mads Martin Joergensen, http://mmj.dk "Why make things difficult, when it is possible to make them cryptic and totally illogic, with just a little bit more effort." -- A. P. J.