mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
Create plugin for execute command console in symfony2.5
This commit is contained in:
parent
3913106b2e
commit
640a8031cf
1 changed files with 21 additions and 0 deletions
21
plugins/symfony2.5/symfony2.5.plugin.zsh
Normal file
21
plugins/symfony2.5/symfony2.5.plugin.zsh
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# Symfony2 basic command completion
|
||||
|
||||
_symfony2_get_command_list () {
|
||||
php bin/console --no-ansi | sed "1,/Available commands/d" | awk '/^ [a-z]+/ { print $1 }'
|
||||
}
|
||||
|
||||
_symfony2 () {
|
||||
if [ -f bin/console ]; then
|
||||
compadd `_symfony2_get_command_list`
|
||||
fi
|
||||
}
|
||||
|
||||
compdef _symfony2 bin/console
|
||||
compdef _symfony2 sf25
|
||||
|
||||
#Alias
|
||||
alias sf25='php bin/console'
|
||||
alias sf25cl='php bin/console cache:clear'
|
||||
alias sf25route='php bin/console router:debug'
|
||||
alias sf25gb='php bin/console generate:bundle'
|
||||
alias sf25cfg='php bin/console config:debug'
|
||||
Loading…
Add table
Add a link
Reference in a new issue