diff --git a/plugins/cakephp3/cakephp3.plugin.zsh b/plugins/cakephp3/cakephp3.plugin.zsh index a635caec8..2b0f58998 100644 --- a/plugins/cakephp3/cakephp3.plugin.zsh +++ b/plugins/cakephp3/cakephp3.plugin.zsh @@ -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