From a3fe8cd13f617e6104a82d28af6416fc7b0a6518 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Mon, 2 Apr 2001 15:28:15 +0000 Subject: 13884: apm for FreeBSD 4.1 --- ChangeLog | 4 ++++ Completion/Linux/_apm | 23 +++++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/ChangeLog b/ChangeLog index d35f5c34d..4d84e162c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2001-04-02 Clint Adams + + * 13884: Completion/Linux/_apm: Add FreeBSD 4.1 apm options. + 2001-04-02 Sven Wischnowsky * 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 -- cgit 1.4.1