The handguide for a manual setup

Adding Git Completion to Zsh

Almost as easy as a brew install

Finding the Dependencies

Git’s shell completion scripts on GitHub
Git’s shell completion scripts on GitHub

You need git’s bash completion script installed somewhere, by default it would be the location bash-completion uses.

Downloading the Scripts

Commands to download all the Git completion scripts

Configuring the Shell

Configures the shell to include and use the Git completion scripts
Zsh will reload the autocomplete cache on its next run
An animation showing the result of the configuration
An animation showing the result of the configuration
The result of the configuration (along with some Powerlevel10k polish)

References

I’m connecting people with technology, seamlessly. Since 2008, I’ve been a software architect and a leading engineer, delivering smart and intuitive software.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store