1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-28 03:32:19 +08:00
ohmyzsh/plugins/symfony/symfony.plugin.zsh

14 lines
315 B
Bash
Raw Normal View History

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