在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