Added bower completion

pull/368/head
Daniel Rufus Kaldheim 2014-11-20 10:55:12 +01:00
parent e60a9f73c7
commit 4232bd1e58
1 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,27 @@
#!/usr/bin/env bash
# Bash completion support for Bower.
export COMP_WORDBREAKS=${COMP_WORDBREAKS/\:/}
_bower_cmds=" \
cache \
help \
home \
info \
init \
install \
link \
list \
lookup \
prune \
register \
search \
update \
uninstall"
_bowercomplete() {
COMPREPLY=($(compgen -W "${_bower_cmds}" -- ${COMP_WORDS[COMP_CWORD]}))
return 0
}
complete -F _bowercomplete bower