about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2005-03-07 02:38:29 +0000
committerClint Adams <clint@users.sourceforge.net>2005-03-07 02:38:29 +0000
commitbb2a6cd760b6c8245376ca48ec5a52eab5d615b9 (patch)
tree78a8a530903d3a2e05d1a93e3078e9eb1ee6cddd
parent41b2e0cb680d7ee80a84283bdcedd13c6854c87d (diff)
downloadzsh-bb2a6cd760b6c8245376ca48ec5a52eab5d615b9.tar.gz
zsh-bb2a6cd760b6c8245376ca48ec5a52eab5d615b9.tar.xz
zsh-bb2a6cd760b6c8245376ca48ec5a52eab5d615b9.zip
* 20936: Completion/Linux/Command/_acpi: completion for acpi command.
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Linux/Command/_acpi18
2 files changed, 23 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index cc03fdb5f..c74bdd7de 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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:
diff --git a/Completion/Linux/Command/_acpi b/Completion/Linux/Command/_acpi
new file mode 100644
index 000000000..fb94a0190
--- /dev/null
+++ b/Completion/Linux/Command/_acpi
@@ -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]'