diff options
Diffstat (limited to 'devscripts/bash_completion.template')
-rw-r--r-- | devscripts/bash_completion.template | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/devscripts/bash_completion.template b/devscripts/bash_completion.template new file mode 100644 index 000000000..3b99a9614 --- /dev/null +++ b/devscripts/bash_completion.template @@ -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 |