[环境]Mac Homebrew自动安装

安装方法:命令行输入

 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"  

 

回车(这里有提示目录不存在,要创建需要按return键,如果用的windows键盘,就是回车键)

 

它的用法

brew update  更新brew;

brew install {应用名,如git} 安装软件

brew cask install {应用名,如git} 也是下载安装,与上面的区别,请查看https://www.zhihu.com/question/22624898

更多用法请 brew help

 

解决办法

rm -rf /usr/local/etc/bash_completion.d/brew
rm -rf /usr/local/share/zsh/site-functions/_brew
rm -rf /usr/local/share/man/man1/brew.1
rm -rf /usr/local/share/doc/homebrew
brew update

 

posted @ 2018-06-12 00:49  -Oreo  阅读(503)  评论(0编辑  收藏  举报