]> git.ipfire.org Git - thirdparty/util-linux.git/blame - bash-completion/isosize
rev: be careful with close()
[thirdparty/util-linux.git] / bash-completion / isosize
CommitLineData
bf60993c
SK
1_isosize_module()
2{
3 local cur prev OPTS
4 COMPREPLY=()
5 cur="${COMP_WORDS[COMP_CWORD]}"
6 prev="${COMP_WORDS[COMP_CWORD-1]}"
bf60993c
SK
7 case $prev in
8 '-d'|'--divisor')
9 COMPREPLY=( $(compgen -W "number" -- $cur) )
10 return 0
11 ;;
d4f9b8d7
VS
12 '-h'|'--help'|'-V'|'--version')
13 return 0
14 ;;
bf60993c 15 esac
5f57e142
SK
16 case $cur in
17 -*)
18 COMPREPLY=( $(compgen -W "--divisor --sectors --help --version" -- $cur) )
19 return 0
20 ;;
21 esac
22 local IFS=$'\n'
23 compopt -o filenames
24 COMPREPLY=( $(compgen -f -- $cur) )
bf60993c
SK
25 return 0
26}
27complete -F _isosize_module isosize