A zsh plugin for the symfony/console based applications (e.g. composer
, bin/console
, artisan
, php-cs-fixer
and etc.). This plugin supports autocompletion for subcommands (composer req
) and GNU-style options (--help
).
antigen bundle "voronkovich/symfony-complete.plugin.zsh@main"
zplug "voronkovich/symfony-complete.plugin.zsh"
git clone https://github.com/voronkovich/symfony-complete.plugin.zsh ~/.oh-my-zsh/custom/plugins/symfony-complete
Edit .zshrc
to enable the plugin:
plugins=(... symfony-complete)
Clone this repo and add this into your .zshrc
:
source path/to/cloned/repo/symfony-complete.plugin.zsh
Enable autocompletion in your .zshrc
for all needed commands:
# Yes, it can complete symfony binary too :)
compdef _symfony_complete symfony
compdef _symfony_complete composer
compdef _symfony_complete console
compdef _symfony_complete artisan
compdef _symfony_complete phpstan
compdef _symfony_complete php-cs-fixer
compdef _symfony_complete phpspec
Copyright (c) Voronkovich Oleg. Distributed under the MIT.