chezmoi init
This commit is contained in:
commit
530d6d7195
1176 changed files with 111325 additions and 0 deletions
15
dot_oh-my-zsh/plugins/yii/README.md
Normal file
15
dot_oh-my-zsh/plugins/yii/README.md
Normal 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` |
|
17
dot_oh-my-zsh/plugins/yii/yii.plugin.zsh
Normal file
17
dot_oh-my-zsh/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…
Add table
Add a link
Reference in a new issue