summaryrefslogtreecommitdiff
path: root/plugins/yii/yii.plugin.zsh
blob: b816160f01d93036db2a2411bf13cd63e5b18f09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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'