mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-23 21:01:58 +00:00
Merge pull request #2535 from IgorTimoshenko/feature/yii-plugin
Added Yii basic command completion
This commit is contained in:
commit
0018969b80
1 changed files with 17 additions and 0 deletions
17
plugins/yii/yii.plugin.zsh
Normal file
17
plugins/yii/yii.plugin.zsh
Normal file
|
@ -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'
|
Loading…
Reference in a new issue