about summary refs log tree commit diff
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
parent956ef612e2a797a3f0325cafb034b654b9e8922f (diff)
downloadzsh-a3fe8cd13f617e6104a82d28af6416fc7b0a6518.tar.gz
zsh-a3fe8cd13f617e6104a82d28af6416fc7b0a6518.tar.xz
zsh-a3fe8cd13f617e6104a82d28af6416fc7b0a6518.zip
13884: apm for FreeBSD 4.1
-rw-r--r--ChangeLog4
-rw-r--r--Completion/Linux/_apm23
2 files changed, 27 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index d35f5c34d..4d84e162c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2001-04-02  Clint Adams  <schizo@debian.org>
+
+	* 13884: Completion/Linux/_apm: Add FreeBSD 4.1 apm options.
+
 2001-04-02  Sven Wischnowsky  <wischnow@zsh.org>
 
 	* Config/installfns.sh, Src/zsh.mdd: more cleanup after
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