mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-11 08:20:09 +00:00
Merge pull request #3087 from hacfi/symfony
Symfony2 plugin use first console found
This commit is contained in:
commit
ca0331da51
1 changed files with 3 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Symfony2 basic command completion
|
# Symfony2 basic command completion
|
||||||
|
|
||||||
_symfony_console () {
|
_symfony_console () {
|
||||||
echo "php $(find . -maxdepth 2 -mindepth 1 -name 'console')"
|
echo "php $(find . -maxdepth 2 -mindepth 1 -name 'console' -type f | head -n 1)"
|
||||||
}
|
}
|
||||||
|
|
||||||
_symfony2_get_command_list () {
|
_symfony2_get_command_list () {
|
||||||
|
@ -13,6 +13,8 @@ _symfony2 () {
|
||||||
}
|
}
|
||||||
|
|
||||||
compdef _symfony2 '`_symfony_console`'
|
compdef _symfony2 '`_symfony_console`'
|
||||||
|
compdef _symfony2 'app/console'
|
||||||
|
compdef _symfony2 'bin/console'
|
||||||
compdef _symfony2 sf
|
compdef _symfony2 sf
|
||||||
|
|
||||||
#Alias
|
#Alias
|
||||||
|
|
Loading…
Reference in a new issue