简体   繁体   中英

Unable to install Homebrew + fish terminal (Mac)

I am unable to install Homebrew( http://brew.sh/ ) using the fish command shell ( http://fishshell.com/ ) on my Mac. Here is the error I get:

$(...) is not supported. In fish, please use '(curl)'.

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

Please suggest!

Start bash and execute the unmodified command line.

Bash supports the syntax $(command) to return the text result of a command. Fish doesn't, but instead uses (command) .

In Fish, command substitutions are just in parentheses, without the leading $ . This should work:

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

Or you can just run that command from bash:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM