Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Functions moved
- X-seq: zsh-workers 13884
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- Subject: Re: Functions moved
- Date: Mon, 2 Apr 2001 11:24:28 -0400
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <200104021441.QAA12200@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>; from wischnow@xxxxxxxxxxxxxxxxxxxxxxx on Mon, Apr 02, 2001 at 04:41:43PM +0200
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <200104021441.QAA12200@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
> Hrm. Any idea how they look like? Option-wise?
Yup. Here's Solaris 8. It apparently has nothing to do with power
management, but rather something related to sadmind. I think.
Usage: apm -c class [version] -m method [-h host] [-d domain]
[-t AuthType] [-f AuthFlavor] [-g ClientGroup] [-n | -p]
[-x AckSecs AckUsecs] [-y RepSecs RepUsecs]
[-k PingCnt] [-w PingSecs PingUsecs] [-i DelaySecs DelayUsecs]
[-r ServerProg ServerVers] [-u [file]] [-l]
[-D DebugCategories] [-a name[=value] name[=value] ...]
And this is for FreeBSD 4.1:
Index: Completion/Linux/_apm
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Linux/_apm,v
retrieving revision 1.1
diff -u -r1.1 _apm
--- Completion/Linux/_apm 2001/04/01 01:12:07 1.1
+++ Completion/Linux/_apm 2001/04/02 15:19:25
@@ -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 @@
'(--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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author