about summary refs log tree commit diff
path: root/Completion/Linux
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2001-04-02 15:28:15 +0000
committerClint Adams <clint@users.sourceforge.net>2001-04-02 15:28:15 +0000
commita3fe8cd13f617e6104a82d28af6416fc7b0a6518 (patch)
tree738fbbf177003d0ba4b2b4debbf14a89c29fad4d /Completion/Linux
parent956ef612e2a797a3f0325cafb034b654b9e8922f (diff)
downloadzsh-a3fe8cd13f617e6104a82d28af6416fc7b0a6518.tar.gz
zsh-a3fe8cd13f617e6104a82d28af6416fc7b0a6518.tar.xz
zsh-a3fe8cd13f617e6104a82d28af6416fc7b0a6518.zip
13884: apm for FreeBSD 4.1
Diffstat (limited to 'Completion/Linux')
-rw-r--r--Completion/Linux/_apm23
1 files changed, 23 insertions, 0 deletions
diff --git a/Completion/Linux/_apm b/Completion/Linux/_apm
index d97afcd05..53dc296c3 100644
--- a/Completion/Linux/_apm
+++ b/Completion/Linux/_apm
@@ -1,4 +1,11 @@
 #compdef apm
+
+# this needs intelligence
+local kludge=linux
+
+if [[ $kludge == "linux" ]]
+then
+
 _arguments -C -s \
     '(--version)-V[print the apm program and exit immediately]' \
     '(-V)--version[print the apm program and exit immediately]' \
@@ -15,3 +22,19 @@ _arguments -C -s \
     '(--ignore)-i[tell the system to ignore system-generated APM message]' \
     '(-i)--ignore[tell the system to ignore system-generated APM message]'
 
+else
+     
+_arguments -C \
+     '-a[display AC line status]' \
+     '-b[display battery status]' \
+     '-d[disable/enable display suspension]:bool:' \
+     '-e[disable/enable apm functions]:bool:' \
+     '-h[disable/enable HLT in kernel context switch]:bool:' \
+     '-l[display remaining battery percentage]' \
+     '-r[enable resume wakeup timer]' \
+     '-s[display status of APM support]' \
+     '-t[display estimated remaining battery life in seconds]' \
+     '-Z[transition system into standby mode]' \
+     '-z[suspend the system]'
+
+fi