aboutsummaryrefslogtreecommitdiff
path: root/youtube-dl.bash-completion.in
blob: c5d0e3f78dfddcab8f198ea891dc2d5c7c8e08c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
__youtube-dl()
{
    local cur prev opts
    COMPREPLY=()
    cur="${COMP_WORDS[COMP_CWORD]}"
    opts=""

    if [[ ${cur} == * ]] ; then
        COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
        return 0
    fi
}

complete -F __youtube-dl youtube-dl