mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
Plugin for ezpublish 5 console
This commit is contained in:
parent
3913106b2e
commit
554be6c71a
1 changed files with 22 additions and 0 deletions
22
plugins/ezpublish5/ezpublish5.plugin.zsh
Normal file
22
plugins/ezpublish5/ezpublish5.plugin.zsh
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
# eZ Publish5 5 basic command completion
|
||||||
|
|
||||||
|
_ezpublish5_get_command_list () {
|
||||||
|
php ezpublish/console --no-ansi | sed "1,/Available commands/d" | awk '/^ [a-z]+/ { print $1 }'
|
||||||
|
}
|
||||||
|
|
||||||
|
_ezpublish5 () {
|
||||||
|
if [ -f ezpublish/console ]; then
|
||||||
|
compadd `_ezpublish5_get_command_list`
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
compdef _ezpublish5 ezpublish/console
|
||||||
|
compdef _ezpublish5 ez
|
||||||
|
|
||||||
|
#Alias
|
||||||
|
alias ez='php ezpublish/console'
|
||||||
|
# there is some ezpublish issue with db params when using warmup, so just strip it
|
||||||
|
alias ezcl='php ezpublish/console cache:clear --no-warmup'
|
||||||
|
alias ezroute='php ezpublish/console router:debug'
|
||||||
|
alias ezgb='php ezpublish/console generate:bundle'
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue