X-Git-Url: https://jfr.im/git/yt-dlp.git/blobdiff_plain/5f09bbff4df9e11d803e3af066c08167f7f7dcb6..5c019f6328ad40d66561eac3c4de0b3cd070d0f6:/devscripts/bash-completion.in diff --git a/devscripts/bash-completion.in b/devscripts/bash-completion.in index 3af87a378..21f52798e 100644 --- a/devscripts/bash-completion.in +++ b/devscripts/bash-completion.in @@ -1,4 +1,4 @@ -__youtube_dl() +__yt_dlp() { local cur prev opts fileopts diropts keywords COMPREPLY=() @@ -6,7 +6,7 @@ __youtube_dl() prev="${COMP_WORDS[COMP_CWORD-1]}" opts="{{flags}}" keywords=":ytfavorites :ytrecommended :ytsubscriptions :ytwatchlater :ythistory" - fileopts="-a|--batch-file|--download-archive|--cookies" + fileopts="-a|--batch-file|--download-archive|--cookies|--load-info" diropts="--cache-dir" if [[ ${prev} =~ ${fileopts} ]]; then @@ -26,4 +26,4 @@ __youtube_dl() fi } -complete -F __youtube_dl youtube-dl +complete -F __yt_dlp yt-dlp