diff options
| author | Andy Spencer <andy@pileus.org> | 2016-08-01 09:46:43 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@zsh.org> | 2016-08-01 10:53:51 +0100 |
| commit | f3ef00b15226490ddb951cc774ca240a2f97fdee (patch) | |
| tree | b06b08ac50ce32d3a21cbef07c8ac5466c4d1090 /Completion/Linux/Command | |
| parent | 38976: new cpupower completion (diff) | |
| download | zsh-f3ef00b15226490ddb951cc774ca240a2f97fdee.tar zsh-f3ef00b15226490ddb951cc774ca240a2f97fdee.tar.gz zsh-f3ef00b15226490ddb951cc774ca240a2f97fdee.tar.bz2 zsh-f3ef00b15226490ddb951cc774ca240a2f97fdee.tar.lz zsh-f3ef00b15226490ddb951cc774ca240a2f97fdee.tar.xz zsh-f3ef00b15226490ddb951cc774ca240a2f97fdee.tar.zst zsh-f3ef00b15226490ddb951cc774ca240a2f97fdee.zip | |
38982: move cpupower completion to correct folder
Diffstat (limited to 'Completion/Linux/Command')
| -rw-r--r-- | Completion/Linux/Command/_cpupower | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/Completion/Linux/Command/_cpupower b/Completion/Linux/Command/_cpupower new file mode 100644 index 000000000..406893e0d --- /dev/null +++ b/Completion/Linux/Command/_cpupower @@ -0,0 +1,102 @@ +#compdef cpupower + +local -a ret state cmds args expl context line + +_arguments \ + '(-h --help)'{-h,--help}'[print usage information]' \ + '(-v --version)'{-v,--version}'[print package name and version]' \ + ':cmd:->cmds' \ + '*::arg:->args' && ret=0 + +case $state in + cmds) + cmds=( + 'frequency-info:show current frequency info' + 'frequency-set:set frequency parameters' + 'idle-info:show current idle state info' + 'idle-set:set idle state parameters' + 'info:show global power parameters' + 'set:set global power parameters' + 'monitor:report frequency and idle statistics' + 'help:print usage information' + ) + _describe cmd cmds && ret=0 + ;; + args) + args=( ) + case ${words[1]} in + frequency-info) + args+=( + '(-e --debug)'{-e,--debug}'[print debug info]' + '(-f --freq)'{-f,--freq}'[show current frequency]' + '(-w --hwfreq)'{-w,--hwfreq}'[show current hardware frequency]' + '(-l --hwlimits)'{-l,--hwlimits}'[show min/max frequency allowed]' + '(-d --driver)'{-d,--driver}'[show the kernel driver in use]' |
