Urgent.News

What's breaking now, across thousands of outlets.

Tech

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…

Translated from French Read in French

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.

Read the original at dev.to →

More in Tech

How to tap into network debugging

I know there’s no connection between my local area network and our house’s plumbing system, but when the faucet started running uncontrollably literally seconds after I fixed a network outage, I had…

Why I Stopped Writing Regex by Hand

Why I Stopped Writing Regex by Hand I've used regex101 for years. It's a genuinely good tool live testing, an auto-generated explanation panel, a huge community pattern library, debugging tools that…

  • Author stopped writing regex by hand due to translation bottleneck.
  • Introduced DataBench tool to eliminate manual pattern translation.
  • DataBench generates working pattern, explanation, and test cases.

More from Monday 31 August →