diff options
author | Filippo Valsorda <filippo.valsorda@gmail.com> | 2012-11-29 16:51:55 +0100 |
---|---|---|
committer | Filippo Valsorda <filippo.valsorda@gmail.com> | 2012-11-29 16:51:55 +0100 |
commit | cc51a7d4e030646a5d7075934f11036ad52a3f1f (patch) | |
tree | f3f19a3c81964b5d7d2edbacb0a2bca787fbc0bd /youtube-dl.bash-completion.in | |
parent | 8192ebe1f874b22b0c27e675a4136a06e46a68ce (diff) |
New repo skeleton, getting ready for PyPi
Diffstat (limited to 'youtube-dl.bash-completion.in')
-rw-r--r-- | youtube-dl.bash-completion.in | 14 |
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 |