1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-12-02 16:40:53 +01:00
zsh/Completion/BSD/Command/_powerd
2018-06-07 17:39:02 +02:00

15 lines
758 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:' \
'-m[minimum frequency to throttle down to]:frequency (MHz)' \
'-M[maximum frequency to throttle up to]:frequency (MHz)' \
"-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]'