Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 618
Actiwitty Avatar asked Dec 14 '22 10:12

Actiwitty


2 Answers

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).

like image 66
zneak Avatar answered Feb 12 '23 12:02

zneak


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
like image 35
mipadi Avatar answered Feb 12 '23 10:02

mipadi