diff options
| author | Robby Russell <robby@planetargon.com> | 2014-03-08 08:32:37 -0800 |
|---|---|---|
| committer | Robby Russell <robby@planetargon.com> | 2014-03-08 08:32:37 -0800 |
| commit | 0018969b807a5bd91647cceb2f55f2bc216c1ec4 (patch) | |
| tree | 085c3f14fafcd1426dbeb9b11aeba234fd9ad679 | |
| parent | 01261d4795f16b3dc9a75660ed66969b04161cf1 (diff) | |
| parent | 354593e9b2b3a7ec3a0840eeadbc7d760cdd7263 (diff) | |
| download | zsh-0018969b807a5bd91647cceb2f55f2bc216c1ec4.tar.gz zsh-0018969b807a5bd91647cceb2f55f2bc216c1ec4.tar.bz2 zsh-0018969b807a5bd91647cceb2f55f2bc216c1ec4.zip | |
Merge pull request #2535 from IgorTimoshenko/feature/yii-plugin
Added Yii basic command completion
| -rw-r--r-- | plugins/yii/yii.plugin.zsh | 17 |
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' |
