summaryrefslogtreecommitdiff
path: root/plugins/symfony2
diff options
context:
space:
mode:
authorGuerki <pol.guerkinger@gmail.com>2014-07-29 09:27:58 +0200
committerGuerki <pol.guerkinger@gmail.com>2014-07-29 09:27:58 +0200
commit65ce765043e75ffb459763565f21df786022f092 (patch)
treebbc50582ee0a239c7adc143bc7ef5509e6177c4d /plugins/symfony2
parentdb3dd6d755776daf19b55f6a1cae080ae684030a (diff)
parent207b6a1e338e03ba06cccf255fbaa7e6147e8f94 (diff)
downloadzsh-65ce765043e75ffb459763565f21df786022f092.tar.gz
zsh-65ce765043e75ffb459763565f21df786022f092.tar.bz2
zsh-65ce765043e75ffb459763565f21df786022f092.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'plugins/symfony2')
-rw-r--r--plugins/symfony2/symfony2.plugin.zsh17
1 files changed, 9 insertions, 8 deletions
diff --git a/plugins/symfony2/symfony2.plugin.zsh b/plugins/symfony2/symfony2.plugin.zsh
index 4c07349a4..1d5177e6d 100644
--- a/plugins/symfony2/symfony2.plugin.zsh
+++ b/plugins/symfony2/symfony2.plugin.zsh
@@ -1,22 +1,23 @@
# Symfony2 basic command completion
_symfony2_get_command_list () {
- php app/console --no-ansi | sed "1,/Available commands/d" | awk '/^ [a-z]+/ { print $1 }'
+ php $(find . -maxdepth 2 -mindepth 1 -name 'console') --no-ansi | sed "1,/Available commands/d" | awk '/^ [a-z]+/ { print $1 }'
}
_symfony2 () {
- if [ -f app/console ]; then
+ if [ -f $(find . -maxdepth 2 -mindepth 1 -name 'console') ]; then
compadd `_symfony2_get_command_list`
fi
}
-compdef _symfony2 app/console
+compdef _symfony2 $(find . -maxdepth 2 -mindepth 1 -name 'console')
compdef _symfony2 sf
#Alias
-alias sf='php app/console'
-alias sfcl='php app/console cache:clear'
-alias sfroute='php app/console router:debug'
-alias sfcontainer='php app/console container:debug'
-alias sfgb='php app/console generate:bundle'
+alias sf='php $(find . -maxdepth 2 -mindepth 1 -name 'console') '
+alias sfcl='php $(find . -maxdepth 2 -mindepth 1 -name 'console') cache:clear'
+alias sfcw='php $(find . -maxdepth 2 -mindepth 1 -name 'console') cache:warmup'
+alias sfroute='php $(find . -maxdepth 2 -mindepth 1 -name 'console') router:debug'
+alias sfcontainer='php $(find . -maxdepth 2 -mindepth 1 -name 'console') container:debug'
+alias sfgb='php $(find . -maxdepth 2 -mindepth 1 -name 'console') generate:bundle'