3 local cur prev OPTS findable
5 cur="${COMP_WORDS[COMP_CWORD]}"
6 prev="${COMP_WORDS[COMP_CWORD-1]}"
8 '-h'|'--help'|'-V'|'--version')
14 OPTS="--version --help"
15 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
19 for i in $(lsblk -rpno label); do
22 for i in $(lsblk -rpno uuid); do
25 for i in $(lsblk -rpno partlabel); do
26 findable+=" PARTLABEL=$i"
28 for i in $(lsblk -rpno partuuid); do
29 findable+=" PARTUUID=$i"
31 COMPREPLY=( $(compgen -W "$findable" -- $cur) )
34 complete -F _findfs_module findfs