Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: _units
- X-seq: zsh-workers 23521
- From: Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Subject: Re: PATCH: _units
- Date: Mon, 4 Jun 2007 12:21:38 -0700
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=first1; d=spodhuis.org; h=Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; b=Y7wem4pdyTMRHDq7FGL40Aix94JW4FXlXCF7smnFVoHkiYgsuNx83A6SWecrcK3qpmFdKM0I2PGj7Mb8w1/oQhuSUnpyG9JZzfA+3sZZpo80isKRtdeqyP1XPdehTAojtd56cqCcN3xg545v9bjG++XiFgC5G6+vHleK3+m7TVU=;
- In-reply-to: <200706041518.l54FI4lV007223@xxxxxxxxxxxxxx>
- Mail-followup-to: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <200706041518.l54FI4lV007223@xxxxxxxxxxxxxx>
On 2007-06-04 at 16:18 +0100, Peter Stephenson wrote:
> This implements completion for GNU units. As noted, it's not that
> useful for some other implementations which don't take command line
> arguments, though for any that do and have a text data file it should be
> extensible. The location of the data file can no doubt be in other
> places than the ones listed.
FreeBSD: /usr/share/misc/units.lib
I suspect that holds for all the modern *BSDs.
My completion-fu sucks; how would this be able to detect automatically
something like FreeBSD units(1), which uses -v for the version:
----------------------------8< cut here >8------------------------------
% units -v
units version 1.0 Copyright (c) 1993 by Adrian Mariano
This program may be freely distributed
usage: units [-f unitsfile] [-q] [-v] [from-unit to-unit]
%
----------------------------8< cut here >8------------------------------
-Phil
Messages sorted by:
Reverse Date,
Date,
Thread,
Author