使用zsh进行Brew Git Bash完成

4 git zsh

我从Mac Port改为Homebrew

我正在使用zsh,我安装了brew git git-extra和bash-completion.我仍然没有看到git自动完成像用于显示它的mac端口.

cnd*_*cnd 5

好像你需要获得zsh-completions


Mea*_*bed 2

您需要将配置添加到 .zshrc 中,如下所示

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


fpath=(/usr/local/share/zsh/site-functions $fpath)
Run Code Online (Sandbox Code Playgroud)