]> git.ipfire.org Git - thirdparty/util-linux.git/blame - bash-completion/addpart
last: do not use non-standard __UT_NAMESIZE
[thirdparty/util-linux.git] / bash-completion / addpart
CommitLineData
bf60993c
SK
1_addpart_module()
2{
5e3da11b 3 local cur
bf60993c
SK
4 COMPREPLY=()
5 cur="${COMP_WORDS[COMP_CWORD]}"
6 case $COMP_CWORD in
7 1)
53154dae 8 OPTS="--help --version $(lsblk -pnro name)"
bf60993c
SK
9 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
10 ;;
11 2)
12 # FIXME: how to determine next free partition number
13 ;;
14 3)
15 COMPREPLY=( $(compgen -W "start" -- $cur) )
16 ;;
17 4)
18 COMPREPLY=( $(compgen -W "length" -- $cur) )
19 ;;
20 esac
21 return 0
22}
23complete -F _addpart_module addpart