diff options
author | gcmalloc <gcmalloc@gmail.com> | 2012-12-11 19:17:02 +0100 |
---|---|---|
committer | gcmalloc <gcmalloc@gmail.com> | 2012-12-11 19:17:02 +0100 |
commit | f6152b4b64c1be14d94f65c71382cdb8cd6c6a47 (patch) | |
tree | e1260d1ba478d68d4e2450d1997ae7dfd8127e63 /devscripts/bash-completion.in | |
parent | 95eb771dcda47f948b050da85c7ff22539e3ee12 (diff) |
changing the template file extension
Diffstat (limited to 'devscripts/bash-completion.in')
-rw-r--r-- | devscripts/bash-completion.in | 14 |
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 |