<div dir="ltr"><div>I'm pleased to announce fast mach tab completion for bash, zsh and fish shells! Follow the directions here to get set up:</div><div><a href="https://firefox-source-docs.mozilla.org/mach/usage.html#tab-completion">https://firefox-source-docs.mozilla.org/mach/usage.html#tab-completion</a></div><div><br></div><div>These scripts have a couple big advantages over the <a href="https://searchfox.org/mozilla-central/source/python/mach/bash-completion.sh">old completion script</a>:</div><div><br></div><div>1. They are much faster (no more 1-2s delay on tab)</div><div>2. They display the help text of commands / arguments while completing (zsh and fish only).</div><div><br></div><div>The old completion script will still hang around for now, but it should be considered deprecated and could be removed at a later date.<br></div><div><br></div><div>The only drawback of the new scripts is that they need to be periodically re-generated as commands and arguments are hardcoded into the completion script itself. This can be pretty easily accomplished via a cron task. <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1670288">Bug 1670288</a> also tracks (re)generating + installing these scripts as part of `mach bootstrap` (I don't have time / plans to work on this anytime soon however).</div><div><br></div><div>Please let me know if you have any problems getting it set up. Bugs can be filed under Firefox Build System :: Mach Core.</div><div><br></div><div>Cheers,</div><div>Andrew<br></div></div>