5 cur="${COMP_WORDS[COMP_CWORD]}"
6 prev="${COMP_WORDS[COMP_CWORD-1]}"
9 COMPREPLY=( $(compgen -W "$($1 -l)" -- $cur) )
12 '-u'|'--help'|'-v'|'--version')
18 OPTS="--shell --list-shells --version --help"
19 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
23 COMPREPLY=( $(compgen -u -- $cur) )
26 complete -F _chsh_module chsh