aboutsummaryrefslogtreecommitdiff
path: root/youtube-dl.bash-completion.in
diff options
context:
space:
mode:
authorFilippo Valsorda <filippo.valsorda@gmail.com>2012-11-29 16:51:55 +0100
committerFilippo Valsorda <filippo.valsorda@gmail.com>2012-11-29 16:51:55 +0100
commitcc51a7d4e030646a5d7075934f11036ad52a3f1f (patch)
treef3f19a3c81964b5d7d2edbacb0a2bca787fbc0bd /youtube-dl.bash-completion.in
parent8192ebe1f874b22b0c27e675a4136a06e46a68ce (diff)
New repo skeleton, getting ready for PyPi
Diffstat (limited to 'youtube-dl.bash-completion.in')
-rw-r--r--youtube-dl.bash-completion.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/youtube-dl.bash-completion.in b/youtube-dl.bash-completion.in
new file mode 100644
index 000000000..c5d0e3f78
--- /dev/null
+++ b/youtube-dl.bash-completion.in
@@ -0,0 +1,14 @@
+__youtube-dl()
+{
+ local cur prev opts
+ COMPREPLY=()
+ cur="${COMP_WORDS[COMP_CWORD]}"
+ opts=""
+
+ if [[ ${cur} == * ]] ; then
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ return 0
+ fi
+}
+
+complete -F __youtube-dl youtube-dl