You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
267 B

  1. __youtube-dl()
  2. {
  3. local cur prev opts
  4. COMPREPLY=()
  5. cur="${COMP_WORDS[COMP_CWORD]}"
  6. opts="{{flags}}"
  7. if [[ ${cur} == * ]] ; then
  8. COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
  9. return 0
  10. fi
  11. }
  12. complete -F __youtube-dl youtube-dl