have llxcfg-setvars && _llxcfg-setvars() { local cur prev opts base COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" prev="${COMP_WORDS[COMP_CWORD-1]}" # # The basic options we'll complete. # # # Complete the arguments to some of the basic commands. # local vars=$(llxcfg-listvars --values) COMPREPLY=($(compgen -W "${vars}" -- ${cur})) return 0 } [ "$have" ] && complete -F _llxcfg-setvars llxcfg-setvars