From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1484 invoked from network); 11 Mar 2004 15:49:19 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 11 Mar 2004 15:49:19 -0000 Received: (qmail 21060 invoked by alias); 11 Mar 2004 15:49:12 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19600 Received: (qmail 21045 invoked from network); 11 Mar 2004 15:49:10 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 11 Mar 2004 15:49:10 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [216.254.112.45] by sunsite.dk (MessageWall 1.0.8) with SMTP; 11 Mar 2004 15:49:9 -0000 Received: by acolyte.scowler.net (Postfix, from userid 1000) id 952E87004A; Thu, 11 Mar 2004 10:49:08 -0500 (EST) Date: Thu, 11 Mar 2004 10:49:08 -0500 From: Clint Adams To: zsh-workers@sunsite.dk Subject: PATCH: tla completion Message-ID: <20040311154908.GA31168@scowler.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.5.1+cvs20040105i This is primitive completion for tla. Index: Completion/Unix/Command/_tla =================================================================== RCS file: Completion/Unix/Command/_tla diff -N Completion/Unix/Command/_tla --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ Completion/Unix/Command/_tla 11 Mar 2004 15:39:00 -0000 @@ -0,0 +1,9 @@ +#compdef tla + +subcmds=(${${${(M)${(f)"$(_call_program tla tla help)"}:#[ ]* : *}% : *}##[ ]##} ) + +if (( CURRENT == 2 )); then + _describe -t commands 'tla command' compadd - "$subcmds[@]" +else + _files +fi