shell dot on steroids https://pagure.io/shellfu

complete-devel.bash 319B

12345678910111213
  1. __shellfu_doc() {
  2. local cur prev opts
  3. COMPREPLY=()
  4. cur="${COMP_WORDS[COMP_CWORD]}"
  5. prev="${COMP_WORDS[COMP_CWORD-1]}"
  6. args="--help --debug --include --ls --lsmod --lsfun --lsvar --export --name"
  7. COMPREPLY=(
  8. $(compgen -W "$args" -- ${cur})
  9. )
  10. }
  11. complete -F __shellfu_doc shellfu-doc