5 cur="${COMP_WORDS[COMP_CWORD]}"
8 OPTS="--help --version $(lsblk -pnro name)"
9 compopt -o bashdefault -o default
10 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
13 # FIXME: how to determine next free partition number
16 COMPREPLY=( $(compgen -W "start" -- $cur) )
19 COMPREPLY=( $(compgen -W "length" -- $cur) )
24 complete -F _addpart_module addpart