]> git.ipfire.org Git - thirdparty/util-linux.git/blob - bash-completion/isosize
su: use lib/pty-session.c code for --pty
[thirdparty/util-linux.git] / bash-completion / isosize
1 _isosize_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 '-d'|'--divisor')
9 COMPREPLY=( $(compgen -W "number" -- $cur) )
10 return 0
11 ;;
12 '-h'|'--help'|'-V'|'--version')
13 return 0
14 ;;
15 esac
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) )
25 return 0
26 }
27 complete -F _isosize_module isosize