5 cur="${COMP_WORDS[COMP_CWORD]}"
7 keywords=":ytfavorites :ytrecommended :ytsubscriptions :ytwatchlater"
9 if [[ ${cur} =~ : ]]; then
10 COMPREPLY=( $(compgen -W "${keywords}" -- ${cur}) )
12 elif [[ ${cur} == * ]] ; then
13 COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
18 complete -F __youtube-dl youtube-dl