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

complete.bash 264B

123456789101112131415
  1. __sfpath() {
  2. local cur prev opts
  3. COMPREPLY=()
  4. cur="${COMP_WORDS[COMP_CWORD]}"
  5. prev="${COMP_WORDS[COMP_CWORD-1]}"
  6. opts="--version --version-semver"
  7. COMPREPLY=(
  8. $(compgen -W "$opts" -- ${cur})
  9. )
  10. }
  11. }
  12. complete -F __sfpath sfpath