- HomeBrew安装命令
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
这个命令是官网的 http://brew.sh/index_zh-cn.html
然而我在终端中使用时显示下列错误
$(...) is not supported. In fish, please use '(curl)'.
fish: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- 解决方案
将命令替换为
$ ruby (curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install | psub)
或
$ curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install | ruby
这样就解决了
- 查看homebrew
$ brew -v
Homebrew 1.1.1
Homebrew/homebrew-core (git revision ac0a; last commit 2016-11-20)