about summary refs log tree commit diff
path: root/Completion/BSD/Command/_powerd
blob: 18a9fb4375dda2257a8e2d353368ba697c71a7da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#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]'