1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-21 00:01:26 +01:00
zsh/Completion/BSD/Command/_powerd
Peter Stephenson b2e70921b0 25435: Baptiste Daroussin <baptiste.daroussin@gmail.com>:
new and improved BSD completions
unposted: fix Solaris completion .distfiles
2008-08-12 10:37:30 +00:00

13 lines
628 B
Text

#compdef powerd
local powerd_mode
powerd_mode=(minimum maximum adaptative)
_arguments -s \
"-a[Mode to use while on AC power]:mode:($powerd_mode)" \
"-b[Mode to use while on battery power]:mode:($powerd_mode)" \
'-i[CPU idle percent level when begin to degrade performance]:percent:' \
"-n[mode to use normally when the AC line state is unknown]:mode:($powerd_mode)" \
'-p[polling interval (in milliseconds) for AC line state and system idle levels]:interval:' \
'-P[Alternative pidfile]:pidfile:_files' \
'-r[CPU idle percent level where to increase performance]:percent:' \
'-v[Verbose mode]'