From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13762 invoked from network); 12 Feb 2004 17:47:05 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 12 Feb 2004 17:47:05 -0000 Received: (qmail 4602 invoked by alias); 12 Feb 2004 17:46:06 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7041 Received: (qmail 4550 invoked from network); 12 Feb 2004 17:46:05 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 12 Feb 2004 17:46:05 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [4.11.9.147] by sunsite.dk (MessageWall 1.0.8) with SMTP; 12 Feb 2004 17:46:4 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id i1CHk3401223 for zsh-users@sunsite.dk; Thu, 12 Feb 2004 09:46:03 -0800 X-Authentication-Warning: candle.brasslantern.com: schaefer set sender to schaefer@closedmail.com using -f From: Bart Schaefer Message-Id: <1040212174602.ZM1222@candle.brasslantern.com> Date: Thu, 12 Feb 2004 17:46:02 +0000 In-Reply-To: Comments: In reply to Eric Mangold "short option and long option completion formatting" (Feb 11, 10:58pm) References: X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-users@sunsite.dk Subject: Re: short option and long option completion formatting MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Feb 11, 10:58pm, Eric Mangold wrote: } } I want a way to combine these specs so as not to duplicate "code" and a } way to format this all on one line, such as: } } -a -- A description } -b, --bar -- Description of bar } -f, --foo -- Description of foo } --baz -- baz description This is done automatically for options with identical descriptions, as of zsh 4.1.something (I forget exactly when). E.g. note -H and -v in the cvs completion below: schaefer<501> cvs - Completing option --allow-root -- allowable root for pserver --help -H -- print help information --help-commands -- command help --help-options -- global options help --help-synonyms -- command synonyms help --version -v -- print version and copyright information (more trimmed) So I'd say you should leave your completion function as it is, and consider upgrading your zsh installation if you're desperate to have this.