projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changing the template file extension
[youtube-dl]
/
devscripts
/
bash-completion.in
diff --git a/devscripts/bash-completion.in
b/devscripts/bash-completion.in
new file mode 100644
(file)
index 0000000..
3b99a96
--- /dev/null
+++ b/
devscripts/bash-completion.in
@@ -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