summaryrefslogtreecommitdiffhomepage
path: root/devscripts/bash-completion.in
diff options
context:
space:
mode:
authorgcmalloc <[email protected]>2012-12-11 19:17:02 +0100
committerFilippo Valsorda <[email protected]>2012-12-11 20:49:54 +0100
commita4680a590f46b1cee44be04d7f285bbe7b6a8d63 (patch)
tree719c1ce54e2d17f8dbf9d89c3feb4157ad3e43e7 /devscripts/bash-completion.in
parentfedb6816cd045b4a0a12b7cd1a51a1712abde874 (diff)
downloadyoutube-dl-a4680a590f46b1cee44be04d7f285bbe7b6a8d63.tar.gz
youtube-dl-a4680a590f46b1cee44be04d7f285bbe7b6a8d63.zip
changing the template file extension
Diffstat (limited to 'devscripts/bash-completion.in')
-rw-r--r--devscripts/bash-completion.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/devscripts/bash-completion.in b/devscripts/bash-completion.in
new file mode 100644
index 000000000..3b99a9614
--- /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