码迷,mamicode.com
首页 > 其他好文 > 详细

解决zsh: command not found: gitk,将git路径/usr/bin/git修改为/usr/local/bin/git

时间:2020-07-12 18:34:10      阅读:134      评论:0      收藏:0      [点我收藏+]

标签:ble   brew   exe   oca   tin   路径   example   echo   lan   

一、通过homebrew查看是否有异常(首先你得安装了Homebrew)

$ brew doctor

二、根据提示修改zsh配置

Warning: Homebrew‘s sbin was not found in your PATH but you have installed
formulae that put executables in /usr/local/sbin.
Consider setting the PATH for example like so:
  echo ‘export PATH="/usr/local/sbin:$PATH"‘ >> ~/.zshrc

三、实际操作

$ vim ~/.zshr

将 export PATH="/usr/local/sbin:$PATH 添加到配置文件中

$ source ~/.zshrc

$ which git 

$ git --version

四、如果还是不行只需要手动下载git-gui即可

$ brew install git-gui

也可参考链接:https://www.jianshu.com/p/7c6577dec016

解决zsh: command not found: gitk,将git路径/usr/bin/git修改为/usr/local/bin/git

标签:ble   brew   exe   oca   tin   路径   example   echo   lan   

原文地址:https://www.cnblogs.com/nayek/p/13289200.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!