about summary refs log tree commit diff
diff options
context:
space:
mode:
-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