无法安装 Homebrew + fish terminal (Mac)
Unable to install Homebrew + fish terminal (Mac)
我无法在我的 Mac 上安装 Homebrew(http://brew.sh/) using the fish command shell (http://fishshell.com/)。这是我得到的错误:
$(...) is not supported. In fish, please use '(curl)'.
fish: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
求推荐!
启动bash并执行未修改的命令行。
Bash 支持语法 $(command)
到 return 命令的文本结果。 Fish 没有,而是使用 (command)
.
在 Fish 中,命令替换只是在括号中,没有前导 $
。这应该有效:
ruby -e "(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
或者您可以 运行 来自 bash 的命令:
bash
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
exit
我无法在我的 Mac 上安装 Homebrew(http://brew.sh/) using the fish command shell (http://fishshell.com/)。这是我得到的错误:
$(...) is not supported. In fish, please use '(curl)'.
fish: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
求推荐!
启动bash并执行未修改的命令行。
Bash 支持语法 $(command)
到 return 命令的文本结果。 Fish 没有,而是使用 (command)
.
在 Fish 中,命令替换只是在括号中,没有前导 $
。这应该有效:
ruby -e "(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
或者您可以 运行 来自 bash 的命令:
bash
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
exit