Skip to content

Commit

Permalink
Merge pull request #752 from andrewtch/symfony2-completion
Browse files Browse the repository at this point in the history
Symfony 2 completion
  • Loading branch information
robbyrussell committed Dec 19, 2011
2 parents 8c96fa3 + 03424fd commit 54f1758
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions plugins/symfony2/symfony2.plugin.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Symfony2 basic command completion

_symfony2_get_command_list () {
app/console --no-ansi | sed "1,/Available commands/d" | awk '/^ [a-z]+/ { print $1 }'
}

_symfony2 () {
if [ -f app/console ]; then
compadd `_symfony2_get_command_list`
fi
}

compdef _symfony2 app/console

0 comments on commit 54f1758

Please sign in to comment.