diff options
| author | Robby Russell <robby@planetargon.com> | 2011-12-19 13:56:48 -0800 |
|---|---|---|
| committer | Robby Russell <robby@planetargon.com> | 2011-12-19 13:56:48 -0800 |
| commit | 54f17588b363fa20df592366b6dd693ce3b7c820 (patch) | |
| tree | 1959902e754c673b1bc608d6382b6036d7f19f4f | |
| parent | 8c96fa3ec681f476c5ca8b1a4655dcb71c9baa91 (diff) | |
| parent | 03424fdadba13fea2297a94144e989926cabdcb3 (diff) | |
| download | zsh-54f17588b363fa20df592366b6dd693ce3b7c820.tar.gz zsh-54f17588b363fa20df592366b6dd693ce3b7c820.tar.bz2 zsh-54f17588b363fa20df592366b6dd693ce3b7c820.zip | |
Merge pull request #752 from andrewtch/symfony2-completion
Symfony 2 completion
| -rw-r--r-- | plugins/symfony2/symfony2.plugin.zsh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/symfony2/symfony2.plugin.zsh b/plugins/symfony2/symfony2.plugin.zsh new file mode 100644 index 000000000..644266841 --- /dev/null +++ b/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
\ No newline at end of file |
