]> git.ipfire.org Git - thirdparty/util-linux.git/blob - bash-completion/chmem
libfdisk: (gpt) cast number of entries [lgtm scan]
[thirdparty/util-linux.git] / bash-completion / chmem
1 _chmem_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 --enable
16 --disable
17 --blocks
18 --verbose
19 --zone
20 --help
21 --version
22 "
23 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
24 return 0
25 ;;
26 esac
27 COMPREPLY=( $(compgen -W "size range blockrange" -- $cur) )
28 return 0
29 }
30 complete -F _chmem_module chmem