How to enable zsh autocompletion for Composer and Symfony Console commands
A developer has shared a single zsh completion script that adds autocompletion support for both Composer and Symfony Console commands. Once installed, Composer commands like 'remove' and 'reinstall' autocomplete using packages actually listed in the project's composer.json file. The script also suggests Packagist package names sorted by popularity when running 'composer require', eliminating the need to copy-paste from the website. Installation requires just a few terminal commands to download the script and update the zsh configuration file. The author notes the workaround will become unnecessary if Composer updates its PHP compatibility policy and upgrades its symfony/console dependency.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in