Update cakephp3.plugin.zsh

saffowing sugestion @mcornella
This commit is contained in:
Draniu 2016-05-23 12:19:14 +02:00
commit 79a87fa437

View file

@ -12,6 +12,7 @@ _cakephp3_get_3rd_argument () {
}
_cakephp3 () {
has3rdargument=("all" "controller" "fixture" "model" "template")
if [ -f bin/cake ]; then
if (( CURRENT == 2 )); then
compadd `_cakephp3_get_command_list`
@ -27,8 +28,6 @@ _cakephp3 () {
fi
}
has3rdargument=("all" "controller" "fixture" "model" "template")
compdef _cakephp3 bin/cake
compdef _cakephp3 cake