mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-03 10:21:46 +02:00
13884: apm for FreeBSD 4.1
This commit is contained in:
parent
956ef612e2
commit
a3fe8cd13f
2 changed files with 27 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue