]> git.ipfire.org Git - thirdparty/util-linux.git/blame - bash-completion/uclampset
Merge branch 'fincore-block' of https://github.com/dancerj/util-linux
[thirdparty/util-linux.git] / bash-completion / uclampset
CommitLineData
860112cb
QY
1_uclampset_module()
2{
3 local cur prev OPTS
4 COMPREPLY=()
5 cur="${COMP_WORDS[COMP_CWORD]}"
6 prev="${COMP_WORDS[COMP_CWORD-1]}"
7 case $prev in
8 '-h'|'--help'|'-V'|'--version')
9 return 0
10 ;;
11 esac
12 case $cur in
13 -*)
14 OPTS="
15 --all-tasks
16 --help
17 --pid
18 --system
19 --reset-on-fork
20 --verbose
21 --version
22 "
23 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
24 return 0
25 ;;
26 esac
27 local i
28 for i in ${COMP_WORDS[*]}; do
29 case $i in
30 '-p'|'--pid')
31 COMPREPLY=( $(compgen -W "$(cd /proc && echo [0-9]*)" -- $cur) )
32 return 0
33 ;;
34 esac
35 done
36 COMPREPLY=( $(compgen -c -- $cur) )
37 return 0
38}
39complete -F _uclampset_module uclampset