zsh autocompletion with Composer and Symfony console
tl;dr Le script de completion est sur ce gist , et cette commande installe tout d'un coup : mkdir -p ~/.config/zsh/completions curl -fsSL https://gist.githubusercontent.com/GromNaN/00d92b92cb29a7db913784f436295a91/raw/_console \ -o ~/.config/zsh/completions/_console grep -qF 'zsh/completions' ~/.zshrc || cat >> ~/.zshrc << ' EOF ' # Completion zsh pour bin/console et composer…
A script has been created to enable autocompletion for Composer and Symfony's bin/console in zsh. Symfony's console component has supported autocompletion since version 5.4, but Composer, which uses an older version of the component, does not support it. The script, available on a gist, works by using a shell script generated for Symfony and adapting it for Composer. It can be installed by running a few commands, including mkdir, curl, and grep, to set up the completion directory and load the script in .zshrc.
Written by urgent.news from Dev.to's report — not a translation of it. Machine-written — may contain errors; check the original before relying on it.