summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/yii/yii.plugin.zsh17
1 files changed, 17 insertions, 0 deletions
diff --git a/plugins/yii/yii.plugin.zsh b/plugins/yii/yii.plugin.zsh
new file mode 100644
index 000000000..b816160f0
--- /dev/null
+++ b/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'