Fix zsh config inclusion

This commit is contained in:
Tim
2020-03-09 15:32:52 +01:00
parent e6b0199bac
commit a69769e47f
871 changed files with 42 additions and 9 deletions

View File

@ -0,0 +1,14 @@
# Yii plugin
The plugin adds autocomplete commands and subcommands for [yii](https://www.yiiframework.com/).
To use it, add `yii` to the plugins array of your zshrc file:
```
plugins=(... yii)
```
## Aliases
| Alias | Command |
|--------|----------------------|
| yiic | `protected/yiic` |

View 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'