Sha256: aaaf9578a8ccd4461415f1803981fd6ea8d786c22367a226693544ead07dbe9b
Contents?: true
Size: 790 Bytes
Versions: 1
Compression:
Stored size: 790 Bytes
Contents
#!/usr/bin/env bash _kameleon() { COMPREPLY=() local i=1 while [ $i -le "$COMP_CWORD" -a "${COMP_WORDS[$i]:0:1}" == "-" ]; do ((i++)) done if [ "$COMP_CWORD" -eq $i ]; then local commands="$(compgen -W "$(kameleon commands)" -- "${COMP_WORDS[$i]}")" COMPREPLY=( $commands $projects ) fi while [ $i -le "$COMP_CWORD" -a "${COMP_WORDS[$i]:0:1}" == "-" ]; do ((i++)) done if [ "$COMP_CWORD" -eq $((i+1)) ] && kameleon commands | grep -q "${COMP_WORDS[$i]}" ; then if wordlist=$(kameleon ${COMP_WORDS[$i]} commands); then local commands="$(compgen -W "$wordlist" -- "${COMP_WORDS[$((i+1))]}")" COMPREPLY=( $commands $projects ) fi fi } complete -o default -F _kameleon kameleon
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kameleon-builder-2.10.3 | completion/kameleon.bash |