1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-21 00:01:26 +01:00

* 20936: Completion/Linux/Command/_acpi: completion for acpi command.

This commit is contained in:
Clint Adams 2005-03-07 02:38:29 +00:00
parent 41b2e0cb68
commit bb2a6cd760
2 changed files with 23 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2005-03-07 Clint Adams <clint@zsh.org>
* 20936: Completion/Linux/Command/_acpi: completion for acpi
command.
2005-03-05 Andrey Borzenkov <bor@zsh.org>
* Tobias Gruetzmacher: 20932: Completion/X/Command/_kfmclient:

View file

@ -0,0 +1,18 @@
#compdef acpi
_arguments \
'(-b --battery)'{-b,--battery}'[battery information]' \
'(-B --without-battery)'{-B,--without-battery}'[suppress battery information]' \
'(-t --thermal)'{-t,--thermal}'[thermal information]' \
'(-T --without-thermal)'{-T,--without-thermal}'[suppress thermal information]' \
'(-a --ac-adapter)'{-a,--ac-adapter}'[ac adapter information]' \
'(-A --without-ac-adapter)'{-A,--without-ac-adapter}'[suppress ac-adapter information]' \
'(-V --everything)'{-V,--everything}'[show every device, overrides above options]' \
'(-s --show-empty)'{-s,--show-empty}'[show non-operational devices]' \
'(-S --hide-empty)'{-S,--hide-empty}'[hide non-operational devices]' \
'(-c --celsius -f --fahrenheit -k --kelvin)'{-c,--celsius}'[use Celsius as the temperature scale]' \
'(-c --celsius -f --fahrenheit -k --kelvin)'{-f,--fahrenheit}'[use Fahrenheit as the temperature scale]' \
'(-c --celsius -f --fahrenheit -k --kelvin)'{-k,--kelvin}'[use Kelvin as the temperature scale]' \
'(-d --directory)'{-d,--directory}'[path to ACPI info (/proc/acpi)]:directory:_files -/' \
'(-h --help)'{-h,--help}'[display this help and exit]' \
'(-v --version)'{-v,--version}'[output version information and exit]'