mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
Update the plugins managment. Add the function 'omz-plugin' (inspired from bash-it)
This commit is contained in:
parent
d2725d44fc
commit
5c4f982ff7
417 changed files with 124 additions and 1 deletions
29
plugins/available/symfony2/symfony2.plugin.zsh
Normal file
29
plugins/available/symfony2/symfony2.plugin.zsh
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
# Symfony2 basic command completion
|
||||
|
||||
_symfony_console () {
|
||||
echo "php $(find . -maxdepth 2 -mindepth 1 -name 'console' -type f | head -n 1)"
|
||||
}
|
||||
|
||||
_symfony2_get_command_list () {
|
||||
`_symfony_console` --no-ansi | sed "1,/Available commands/d" | awk '/^ ?[^ ]+ / { print $1 }'
|
||||
}
|
||||
|
||||
_symfony2 () {
|
||||
compadd `_symfony2_get_command_list`
|
||||
}
|
||||
|
||||
compdef _symfony2 '`_symfony_console`'
|
||||
compdef _symfony2 'app/console'
|
||||
compdef _symfony2 'bin/console'
|
||||
compdef _symfony2 sf
|
||||
|
||||
#Alias
|
||||
alias sf='`_symfony_console`'
|
||||
alias sfcl='sf cache:clear'
|
||||
alias sfsr='sf server:run -vvv'
|
||||
alias sfcw='sf cache:warmup'
|
||||
alias sfroute='sf debug:router'
|
||||
alias sfcontainer='sf debug:container'
|
||||
alias sfgb='sf generate:bundle'
|
||||
alias sfdev='sf --env=dev'
|
||||
alias sfprod='sf --env=prod'
|
||||
Loading…
Add table
Add a link
Reference in a new issue