From f6152b4b64c1be14d94f65c71382cdb8cd6c6a47 Mon Sep 17 00:00:00 2001 From: gcmalloc Date: Tue, 11 Dec 2012 19:17:02 +0100 Subject: changing the template file extension --- devscripts/bash-completion.in | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 devscripts/bash-completion.in (limited to 'devscripts/bash-completion.in') 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 -- cgit v1.2.3