]> git.ipfire.org Git - thirdparty/util-linux.git/blame - bash-completion/chmem
rev: be careful with close()
[thirdparty/util-linux.git] / bash-completion / chmem
CommitLineData
d092911b
SK
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
afee3f20 19 --zone
d092911b
SK
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}
30complete -F _chmem_module chmem