加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

使用zsh进行Brew Git Bash完成

发布时间:2020-12-14 01:19:25 所属栏目:Linux 来源:网络整理
导读:我从Mac Port改为Homebrew 我正在使用zsh,我安装了brew git git-extra和bash-completion.我仍然没有看到git自动完成像用于显示它的mac端口. 解决方法 您需要将配置添加到.zshrc,如下所示 zstyle ‘:completion: : :git:*’ script /usr/local/etc/bash_compl
我从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.bash

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读