Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: _units



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