mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
Create symfony3
This commit is contained in:
parent
3913106b2e
commit
7e62141dd7
1 changed files with 20 additions and 0 deletions
20
plugins/symfony3
Normal file
20
plugins/symfony3
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# Symfony3 basic command completion
|
||||
|
||||
_symfony3_get_command_list () {
|
||||
php bin/console --no-ansi | sed "1,/Available commands/d" | awk '/^ [a-z]+/ { print $1 }'
|
||||
}
|
||||
|
||||
_symfony3 () {
|
||||
if [ -f bin/console ]; then
|
||||
compadd `_symfony3_get_command_list`
|
||||
fi
|
||||
}
|
||||
|
||||
compdef _symfony3 bin/console
|
||||
compdef _symfony3 sf
|
||||
|
||||
#Alias
|
||||
alias sf='php bin/console'
|
||||
alias sfcl='php bin/console cache:clear'
|
||||
alias sfroute='php bin/console router:debug'
|
||||
alias sfgb='php bin/console generate:bundle'
|
||||
Loading…
Add table
Add a link
Reference in a new issue