chezmoi init
This commit is contained in:
commit
530d6d7195
1176 changed files with 111325 additions and 0 deletions
11
dot_oh-my-zsh/plugins/eecms/README.md
Normal file
11
dot_oh-my-zsh/plugins/eecms/README.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
# eecms plugin
|
||||
|
||||
This plugin adds auto-completion of console commands for [`eecms`](https://github.com/ExpressionEngine/ExpressionEngine).
|
||||
|
||||
To use it, add `eecms` to the plugins array of your `.zshrc` file:
|
||||
```
|
||||
plugins=(... eecms)
|
||||
```
|
||||
|
||||
It also adds the alias `eecms` which finds the eecms file in the current project
|
||||
and runs it with php.
|
20
dot_oh-my-zsh/plugins/eecms/eecms.plugin.zsh
Normal file
20
dot_oh-my-zsh/plugins/eecms/eecms.plugin.zsh
Normal file
|
@ -0,0 +1,20 @@
|
|||
# ExpressionEngine CMS basic command completion
|
||||
|
||||
_eecms_console () {
|
||||
echo "php $(find . -maxdepth 3 -mindepth 1 -name 'eecms' -type f | head -n 1)"
|
||||
}
|
||||
|
||||
_eecms_get_command_list () {
|
||||
`_eecms_console` | sed "/Available commands/,/^/d" | sed "s/[[:space:]].*//g"
|
||||
}
|
||||
|
||||
_eecms () {
|
||||
compadd `_eecms_get_command_list`
|
||||
}
|
||||
|
||||
compdef _eecms '`_eecms_console`'
|
||||
compdef _eecms 'system/ee/eecms'
|
||||
compdef _eecms eecms
|
||||
|
||||
#Alias
|
||||
alias eecms='`_eecms_console`'
|
Loading…
Add table
Add a link
Reference in a new issue