我从Mac Port改为Homebrew
我正在使用zsh,我安装了brew git git-extra和bash-completion.我仍然没有看到git自动完成像用于显示它的mac端口.
解决方法
您需要将配置添加到.zshrc,如下所示
zstyle ‘:completion:::git:*’ script
/usr/local/etc/bash_completion.d/git-completion.bashfpath=(/usr/local/share/zsh/site-functions $fpath)