Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: _units
- X-seq: zsh-workers 23522
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: "Peter Stephenson" <pws@xxxxxxx>
- Subject: Re: PATCH: _units
- Date: Mon, 4 Jun 2007 22:30:30 +0200
- Cc: "Zsh hackers list" <zsh-workers@xxxxxxxxxx>
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=E0sMAmXrAru7HpAgJ1UB/VEBJVSZXjCy+1ZS9FQV+zubk32lkY7EyXXNYktkaBphBwv1tWPhbgs5YnefX07TN7X8h5WszoLwGoW9JY8iI7xpX8uJDP+QsR5EfVmBx7205RCiGIj8mB2MY78MPQZJAMB33jSg/1s1mRmIJaetoMk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MiCZsjUUHP1/hR7+YNpVrsrfznt6PoGfEnG+12yW/lhfKN8zkkSPb09byY8iZOnxWt9B5wgX8NZZYZHOtbw6ODwvFeRJiU/n430BI+FhWFCIuinPCrLXorRQa4byxgiwTp+HiYvdyx87X0rpzypMSekaXqHpeUmNmGMiyEWqeog=
- In-reply-to: <200706041518.l54FI4lV007223@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <200706041518.l54FI4lV007223@xxxxxxxxxxxxxx>
On 04/06/07, Peter Stephenson <pws@xxxxxxx> 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.
[..]
+# Find the units data.
+local datfile
+local -a testfiles
+testfiles=(
+ /usr/share/units.dat # GNU
+ /usr/local/share/units.dat
+ /usr/share/lib/unittab # Solaris
/usr/share/units/units.dat here (gentoo linux), at school it's on
/usr/share/misc/units.dat (debian 3.1 i think).
+)
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author