diff options
author | Pierre Rudloff <contact@rudloff.pro> | 2013-08-31 00:37:29 +0200 |
---|---|---|
committer | Pierre Rudloff <contact@rudloff.pro> | 2013-08-31 00:37:29 +0200 |
commit | 847f582290c6ad6ec0c72760ea3cfa6417d28e3c (patch) | |
tree | c12baa61c649ec00e5fdfe35b1f88f0025d54f99 /devscripts/bash-completion.in | |
parent | cd9c100963e8b8bf651d1f359e5f7812603ca0fd (diff) | |
parent | 10f5c016ec6262e5d29327e97fe4f3d1127ccdff (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'devscripts/bash-completion.in')
-rw-r--r-- | devscripts/bash-completion.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/devscripts/bash-completion.in b/devscripts/bash-completion.in index 3b99a9614..bd10f63c2 100644 --- a/devscripts/bash-completion.in +++ b/devscripts/bash-completion.in @@ -4,8 +4,12 @@ __youtube-dl() COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" opts="{{flags}}" + keywords=":ytfavorites :ytrecommended :ytsubscriptions :ytwatchlater" - if [[ ${cur} == * ]] ; then + if [[ ${cur} =~ : ]]; then + COMPREPLY=( $(compgen -W "${keywords}" -- ${cur}) ) + return 0 + elif [[ ${cur} == * ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 fi |