mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-11 00:10:08 +00:00
Add ExpressionEngine CMS autocompletion (#6556)
This commit is contained in:
parent
215e43aa8a
commit
7a0dac8040
1 changed files with 20 additions and 0 deletions
20
plugins/eecms/eecms.plugin.zsh
Normal file
20
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…
Reference in a new issue