Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #752 from andrewtch/symfony2-completion

Symfony 2 completion
  • Loading branch information...
commit 54f17588b363fa20df592366b6dd693ce3b7c820 2 parents 8c96fa3 + 03424fd
@robbyrussell authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 plugins/symfony2/symfony2.plugin.zsh
View
13 plugins/symfony2/symfony2.plugin.zsh
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.