9c755511f0c8e96eb893226ee43947bb3eef6666

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #3887 from jadb/add-cakephp3-plugin

Add CakePHP3 plugin

Diff

 1diff --git a/plugins/cakephp3/cakephp3.plugin.zsh b/plugins/cakephp3/cakephp3.plugin.zsh
 2new file mode 100644
 3index 0000000000000000000000000000000000000000..28d5af2ea5c1a3bfd418850ab0c0508776f80558
 4--- /dev/null
 5+++ b/plugins/cakephp3/cakephp3.plugin.zsh
 6@@ -0,0 +1,19 @@
 7+# CakePHP 3 basic command completion
 8+_cakephp3_get_command_list () {
 9+	cakephp3commands=($(bin/cake completion commands));printf "%s\n" "${cakephp3commands[@]}"
10+}
11+
12+_cakephp3 () {
13+  if [ -f bin/cake ]; then
14+    compadd `_cakephp3_get_command_list`
15+  fi
16+}
17+
18+compdef _cakephp3 bin/cake
19+compdef _cakephp3 cake
20+
21+#Alias
22+alias c3='bin/cake'
23+
24+alias c3cache='bin/cake orm_cache clear'
25+alias c3migrate='bin/cake migrations migrate'