mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-11 13:01:28 +02:00
43813: for powerd add units, default values and allow option arguments in the same word as the option
This commit is contained in:
parent
8d2622ecba
commit
b96dac3287
2 changed files with 13 additions and 10 deletions
|
@ -1,5 +1,8 @@
|
||||||
2018-11-12 Oliver Kiddle <okiddle@yahoo.co.uk>
|
2018-11-12 Oliver Kiddle <okiddle@yahoo.co.uk>
|
||||||
|
|
||||||
|
* 43813: Completion/BSD/Command/_powerd: add units, default
|
||||||
|
values and allow option arguments in the same word as the option
|
||||||
|
|
||||||
* 43812: Completion/Unix/Command/_gcc: allow repeats of
|
* 43812: Completion/Unix/Command/_gcc: allow repeats of
|
||||||
the -Wsuggest-attribute option
|
the -Wsuggest-attribute option
|
||||||
|
|
||||||
|
|
|
@ -3,13 +3,13 @@
|
||||||
local powerd_mode
|
local powerd_mode
|
||||||
powerd_mode=(minimum maximum adaptative)
|
powerd_mode=(minimum maximum adaptative)
|
||||||
_arguments -s \
|
_arguments -s \
|
||||||
"-a[mode to use while on AC power]:mode:($powerd_mode)" \
|
"-a+[mode to use while on AC power]:mode:($powerd_mode)" \
|
||||||
"-b[mode to use while on battery 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:' \
|
'-i+[CPU idle percent level when begin to degrade performance]:percent [75]' \
|
||||||
'-m[minimum frequency to throttle down to]:frequency (MHz)' \
|
'-m+[minimum frequency to throttle down to]:frequency (MHz)' \
|
||||||
'-M[maximum frequency to throttle up 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)" \
|
"-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+[polling interval for AC line state and system idle levels]:interval (ms) [250]:' \
|
||||||
'-P[alternative pidfile]:pidfile:_files' \
|
'-P+[alternative pidfile]:pidfile:_files' \
|
||||||
'-r[CPU idle percent level where to increase performance]:percent:' \
|
'-r+[CPU idle percent level where to increase performance]:percent' \
|
||||||
'-v[verbose mode]'
|
'-v[verbose mode]'
|
||||||
|
|
Loading…
Reference in a new issue