Search code examples
gitzsh

Brew Git Bash Completion with zsh


I changed from Mac Port to Homebrew

I am using zsh, I installed brew git git-extra and bash-completion. i still don't see git auto completion like mac ports used to show it.


Solution

  • You need to add the configs to you .zshrc as below

    zstyle ':completion:*:*:git:*' script
    /usr/local/etc/bash_completion.d/git-completion.bash
    
    
    fpath=(/usr/local/share/zsh/site-functions $fpath)