conf2/zsh/.oh-my-zsh/plugins/yii/yii.plugin.zsh

18 lines
284 B
Bash
Raw Permalink Normal View History

2019-01-12 15:47:23 +00:00
# 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'