Brew Git Bash Completion with zsh

I switched from Mac Port to Homebrew

I use zsh, I installed brew git git-extra and bash -completion. I still don’t see git auto-completion, for example for Mac ports.

+4
source share
2 answers

You need to add .zshrc configs as shown below

zstyle ': completion: git: *' script / usr / local / etc / bash_completion.d / git -completion.bash

fpath = (/ usr / local / share / zsh / site-functions $ fpath)

+3
source

It looks like you need to get zsh-completions

+5
source

Source: https://habr.com/ru/post/1534960/


All Articles