From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24874 invoked from network); 8 May 2002 14:39:56 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 8 May 2002 14:39:56 -0000 Received: (qmail 21146 invoked by alias); 8 May 2002 14:39:29 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4943 Received: (qmail 21030 invoked from network); 8 May 2002 14:39:26 -0000 Date: Wed, 8 May 2002 16:39:20 +0200 From: poeml@cmdline.net To: zsh-users@sunsite.dk Subject: Re: replacing completion Message-ID: <20020508163920.A27207@cmdline.net> Mail-Followup-To: zsh-users@sunsite.dk References: <20020508090045.G13119@ispi.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.16i In-Reply-To: <20020508090045.G13119@ispi.net>; from andrei@ispi.net on Wed, May 08, 2002 at 09:00:45 -0500 X-Useless-Header: If you read this, say 'honk'! On Wed, May 08, 2002 at 09:00:45 -0500, Andrei Zmievski wrote: > Hi, > > I'm trying to write a completion command that accomplishes the > following. When I type 'ssh foo' and hit TAB, I want it to expand to > 'user@foo.someplace.net'. I am not very skilled in zsh completion > specifications, so I tried this: It seems you could also add Host foo User user to .ssh/config, so the ssh client would take care of that itself. (Not that I want to prevent you from having fun with hacking on completion :) Peter -- Thought is limitation. Free your mind.