diff options
author | Andrew Janke <andrew@apjanke.net> | 2015-08-17 20:59:39 -0400 |
---|---|---|
committer | Andrew Janke <andrew@apjanke.net> | 2015-08-17 20:59:39 -0400 |
commit | 00eb4658304b010afdfa87f74be673c8aced4961 (patch) | |
tree | 3d9e7f95f21265c3c60f10cdca720308bb2421c6 /plugins/cakephp3/cakephp3.plugin.zsh | |
parent | 47d19cc56425aa7c550d845726111ee8bd9520d1 (diff) | |
parent | 192de6bcffb0294e19f4203f6f7dc1a7f3e427be (diff) | |
download | zsh-00eb4658304b010afdfa87f74be673c8aced4961.tar.gz zsh-00eb4658304b010afdfa87f74be673c8aced4961.tar.bz2 zsh-00eb4658304b010afdfa87f74be673c8aced4961.zip |
Merge branch 'master' into fold-terminalapp-plugin-into-termsupport
Diffstat (limited to 'plugins/cakephp3/cakephp3.plugin.zsh')
-rw-r--r-- | plugins/cakephp3/cakephp3.plugin.zsh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/plugins/cakephp3/cakephp3.plugin.zsh b/plugins/cakephp3/cakephp3.plugin.zsh new file mode 100644 index 000000000..28d5af2ea --- /dev/null +++ b/plugins/cakephp3/cakephp3.plugin.zsh @@ -0,0 +1,19 @@ +# CakePHP 3 basic command completion +_cakephp3_get_command_list () { + cakephp3commands=($(bin/cake completion commands));printf "%s\n" "${cakephp3commands[@]}" +} + +_cakephp3 () { + if [ -f bin/cake ]; then + compadd `_cakephp3_get_command_list` + fi +} + +compdef _cakephp3 bin/cake +compdef _cakephp3 cake + +#Alias +alias c3='bin/cake' + +alias c3cache='bin/cake orm_cache clear' +alias c3migrate='bin/cake migrations migrate' |