1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 21:44:11 +01:00

13889: move _apm to Unix/Command, add OpenBSD support

This commit is contained in:
Clint Adams 2001-04-02 19:21:18 +00:00
parent ba3c26acfd
commit cceb266765
4 changed files with 23 additions and 7 deletions

@ -1,3 +1,9 @@
2001-04-02 Clint Adams <schizo@debian.org>
* 13889: Completion/Linux/_apm, Completion/Linux/.distfiles,
Completion/Unix/Command/_apm, Completion/Unix/Command/.distfiles:
Add OpenBSD 2.7 apm options. Move to Unix/Command.
2001-04-02 Bart Schaefer <schaefer@zsh.org> 2001-04-02 Bart Schaefer <schaefer@zsh.org>
* 13887: Config/installfns.sh: Skip CVS subdirectories. * 13887: Config/installfns.sh: Skip CVS subdirectories.

@ -1,4 +0,0 @@
DISTFILES_SRC='
.distfiles
_apm
'

@ -13,5 +13,5 @@ _cpio _getconf _lp _pbm _sudo _zdump
_cvs _gnu_generic _ls _perl _tar _zip _cvs _gnu_generic _ls _perl _tar _zip
_dd _gprof _lynx _perldoc _telnet _dd _gprof _lynx _perldoc _telnet
_dict _grep _lzop _prcs _tiff _dict _grep _lzop _prcs _tiff
_diff _gs _make _psutils _tin _diff _gs _make _psutils _tin _apm
' '

@ -22,7 +22,8 @@ _arguments -C -s \
'(--ignore)-i[tell the system to ignore system-generated APM message]' \ '(--ignore)-i[tell the system to ignore system-generated APM message]' \
'(-i)--ignore[tell the system to ignore system-generated APM message]' '(-i)--ignore[tell the system to ignore system-generated APM message]'
else elif [[ $kludge == "freebsd4.1" ]]
then
_arguments -C \ _arguments -C \
'-a[display AC line status]' \ '-a[display AC line status]' \
@ -37,4 +38,17 @@ _arguments -C \
'-Z[transition system into standby mode]' \ '-Z[transition system into standby mode]' \
'-z[suspend the system]' '-z[suspend the system]'
elif [[ $kludge == "openbsd2.7" ]]
then
_arguments -C \
'-z[engage suspend mode]' \
'-S[engage stand-by mode]' \
'-l[display estimated battery lifetime percentage]' \
'-m[display estimated battery lifetime minutes]' \
'-b[display battery status]' \
'-a[display AC line status]' \
'-v[verbose]' \
'-f[socket]:sockname:_files'
fi fi