homes/common/.oh-my-zsh/plugins/symfony/symfony.plugin.zsh
Christophe Buffenoir 16b4350cdb Initial commit
2013-05-02 12:38:30 +02:00

13 lines
313 B
Bash

# symfony basic command completion
_symfony_get_command_list () {
./symfony | sed "1,/Available tasks/d" | awk 'BEGIN { cat=null; } /^[A-Za-z]+$/ { cat = $1; } /^ :[a-z]+/ { print cat $1; }'
}
_symfony () {
if [ -f symfony ]; then
compadd `_symfony_get_command_list`
fi
}
compdef _symfony symfony