在mac常常须要安装一些软件,你能够经过app store下载,或者能够经过浏览袭搜索下载。这里介绍经过homebrew安装一些软件,它会自动为你下载一些软件的相关依赖,免去安装的烦恼。git
首先咱们须要安装brew,复制以下内容,在terminal中执行,等待安装完成github
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
安装成功提示,部分截取xcode
==> Downloading and installing Homebrew... xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools. ==> Installation successful! ==> Next steps Run `brew help` to get started Further documentation: https://git.io/brew-docs ==> Homebrew has enabled anonymous aggregate user behaviour analytics Read the analytics documentation (and how to opt-out) here: https://git.io/brew-analytics xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.
homebrew连接 http://brew.sh. ruby
以后咱们就能够用brew install xx 来安装软件了。 好比:app
brew install gitcurl
brew install wgeturl
brew install zshspa
方便不方便只有试了才知道code