First commit

This commit is contained in:
Philipp 2024-06-19 00:06:56 +02:00
commit 03cc854bfc
Signed by: Philipp
GPG key ID: 9EBD8439AFBAB750
1154 changed files with 124499 additions and 0 deletions

View file

@ -0,0 +1,15 @@
# 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:
```zsh
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'