From 7e62141dd7598eeb52ef51fc236addec3e557374 Mon Sep 17 00:00:00 2001 From: ziveo Date: Thu, 12 Jun 2014 11:41:26 -0400 Subject: [PATCH] Create symfony3 --- plugins/symfony3 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 plugins/symfony3 diff --git a/plugins/symfony3 b/plugins/symfony3 new file mode 100644 index 000000000..6bb9156d3 --- /dev/null +++ b/plugins/symfony3 @@ -0,0 +1,20 @@ +# Symfony3 basic command completion + +_symfony3_get_command_list () { + php bin/console --no-ansi | sed "1,/Available commands/d" | awk '/^ [a-z]+/ { print $1 }' +} + +_symfony3 () { + if [ -f bin/console ]; then + compadd `_symfony3_get_command_list` + fi +} + +compdef _symfony3 bin/console +compdef _symfony3 sf + +#Alias +alias sf='php bin/console' +alias sfcl='php bin/console cache:clear' +alias sfroute='php bin/console router:debug' +alias sfgb='php bin/console generate:bundle'