Parent directory

yii.plugin.zsh

284 bytes
 1# Yii basic command completion
 2
 3_yii_get_command_list () {
 4	protected/yiic | awk '/^ - [a-z]+/ { print $2 }'
 5}
 6
 7_yii () {
 8  if [ -f protected/yiic ]; then
 9    compadd `_yii_get_command_list`
10  fi
11}
12
13compdef _yii protected/yiic
14compdef _yii yiic
15
16# Aliases
17alias yiic='protected/yiic'