aboutsummaryrefslogtreecommitdiff
path: root/youtube-dl.bash-completion.in
diff options
context:
space:
mode:
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