Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: completion for nanoblogger?
- X-seq: zsh-users 10361
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: "ZSH User List" <zsh-users@xxxxxxxxxx>
- Subject: Re: completion for nanoblogger?
- Date: Thu, 8 Jun 2006 18:05:01 +0200
- 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=
- In-reply-to: <20060608132103.GA10421@xxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20060608132103.GA10421@xxxxxxxxx>
On 6/8/06, Andy Spiegl <zsh.Andy@xxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author