diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2020-06-19 15:32:13 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2020-06-19 15:32:34 +0000 |
commit | 8bd46bf2a241e0e3a32a24ce2333095214b3b77a (patch) | |
tree | e34ff10b486e893ad38182b047a4f7e9ff65f7f2 /Completion/Unix/Command | |
parent | 6be112fe742f458fc9152e5c8e147ae9ff0a7f87 (diff) | |
download | zsh-8bd46bf2a241e0e3a32a24ce2333095214b3b77a.tar.gz zsh-8bd46bf2a241e0e3a32a24ce2333095214b3b77a.tar.xz zsh-8bd46bf2a241e0e3a32a24ce2333095214b3b77a.zip |
46044 (tweaked per Matthew): _units: Correct the path to the units data file on Debian with units 2.00 and newer and on FreeBSD.
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r-- | Completion/Unix/Command/_units | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_units b/Completion/Unix/Command/_units index bea77ae67..6d86f4dc3 100644 --- a/Completion/Unix/Command/_units +++ b/Completion/Unix/Command/_units @@ -40,10 +40,12 @@ local -a testfiles testfiles=( /usr/share/units.dat # GNU on Fedora /usr/share/units/units.dat # on gentoo - /usr/share/misc/units.dat # on Debian + /usr/share/units/definitions.units # on Debian, units 2.00 and newer /usr/local/share/units.dat # GNU DIY install /usr/share/lib/unittab # Solaris - /usr/share/misc/units.lib # BSD + /usr/share/misc/units.lib # OpenBSD [as of 2020]; also FreeBSD 9.1 + /usr/share/misc/definitions.units # FreeBSD 12.1 + /usr/share/misc/units.dat # on Debian, units 1.88 and older ) datfile=${opt_args[-f]:-${opt_args[--file]}} |