mirror of
https://github.com/LucBerge/yt-dlp.git
synced 2025-03-17 19:57:52 +03:00
it's curious but bash-completion is with - and not _
This commit is contained in:
parent
a9d2f7e894
commit
4c1d273e88
3 changed files with 4 additions and 4 deletions
14
devscripts/bash-completion.template
Normal file
14
devscripts/bash-completion.template
Normal file
|
@ -0,0 +1,14 @@
|
|||
__youtube-dl()
|
||||
{
|
||||
local cur prev opts
|
||||
COMPREPLY=()
|
||||
cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
opts="{{flags}}"
|
||||
|
||||
if [[ ${cur} == * ]] ; then
|
||||
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
|
||||
return 0
|
||||
fi
|
||||
}
|
||||
|
||||
complete -F __youtube-dl youtube-dl
|
Loading…
Add table
Add a link
Reference in a new issue