Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added Yii basic command completion

  • Loading branch information...
commit 354593e9b2b3a7ec3a0840eeadbc7d760cdd7263 1 parent 4ce7f0a
@IgorTimoshenko IgorTimoshenko authored
Showing with 17 additions and 0 deletions.
  1. +17 −0 plugins/yii/yii.plugin.zsh
View
17 plugins/yii/yii.plugin.zsh
@@ -0,0 +1,17 @@
+# Yii basic command completion
+
+_yii_get_command_list () {
+ protected/yiic | awk '/^ - [a-z]+/ { print $2 }'
+}
+
+_yii () {
+ if [ -f protected/yiic ]; then
+ compadd `_yii_get_command_list`
+ fi
+}
+
+compdef _yii protected/yiic
+compdef _yii yiic
+
+# Aliases
+alias yiic='protected/yiic'
Please sign in to comment.
Something went wrong with that request. Please try again.