From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20522 invoked from network); 8 Jun 2006 16:05:25 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO,RCVD_IN_BL_SPAMCOP_NET autolearn=no version=3.1.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 8 Jun 2006 16:05:25 -0000 Received: (qmail 57335 invoked from network); 8 Jun 2006 16:05:16 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 8 Jun 2006 16:05:16 -0000 Received: (qmail 699 invoked by alias); 8 Jun 2006 16:05:09 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10361 Received: (qmail 689 invoked from network); 8 Jun 2006 16:05:08 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 8 Jun 2006 16:05:08 -0000 Received: (qmail 56263 invoked from network); 8 Jun 2006 16:05:08 -0000 Received: from ug-out-1314.google.com (66.249.92.175) by a.mx.sunsite.dk with SMTP; 8 Jun 2006 16:05:08 -0000 Received: by ug-out-1314.google.com with SMTP id m2so911981uge for ; Thu, 08 Jun 2006 09:05:07 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qIRB0QBFYfpD/NsQ2wUyAnRAhK2A5lAzx1tRRBsqJRlY2RoB+CkH91Ipevp7hbUexeQ+JIgV8NpAMdrG+M2gHl5uCOWhFYtR+47zwwt+JXWvmdrzHwnxvERLBvd1rP6bk4s1e6Klg+5Brcwt0u0AiQAXQbtDzKoNwddefsZcEag= Received: by 10.66.222.9 with SMTP id u9mr1671283ugg; Thu, 08 Jun 2006 09:05:01 -0700 (PDT) Received: by 10.66.222.13 with HTTP; Thu, 8 Jun 2006 09:05:01 -0700 (PDT) Message-ID: <237967ef0606080905n72213adcwd3a700ca76e51e13@mail.gmail.com> Date: Thu, 8 Jun 2006 18:05:01 +0200 From: "Mikael Magnusson" To: "ZSH User List" Subject: Re: completion for nanoblogger? In-Reply-To: <20060608132103.GA10421@spiegl.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060608132103.GA10421@spiegl.de> On 6/8/06, Andy Spiegl wrote: > Anyone out there who has already written a completion function for > nanoblogger? Just wanna save time... :-) > > Thanks, > Andy. http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/nanoblogger/files/nb.bashcomp?rev=1.1&view=markup If you didn't know, you can use some (all?) bash completion scripts if you do this autoload bashcompinit bashcompinit source nb.bashcomp It looks like this one works more or less fine. In the case of programs with gnu output you can just use compdef _gnu_generic nb but it doesn't handle the arguments for options like --blogdir, it's good for stuff like rm and mv though. -- Mikael Magnusson