Installing Homebrew with fish-shell

I recently had a mishap with MySQL and when I uninstalled it from System Preferences it uninstalled Homebrew as well (I checked the erase all files that are related to MySQL, which was probably not the right thing to do).

Anyways, I got everything back to normal but when I try to install Homebrew using the install script on their website:

/usr/bin/ruby -e "$(curl -fsSL )" 

I get this error:

fish: $(...) is not supported. In fish, please use '(curl)'. /usr/bin/ruby -e "$(curl -fsSL )" 

I tried complying with this error by eliminating the '$' and running:

/usr/bin/ruby -e "(curl -fsSL )" 

I then get this error:

-e:1: syntax error, unexpected tLABEL, expecting keyword_do or '{' or '(' (curl -fsSL ^ -e:1: unknown regexp options - raw 

This is where I am stuck. I've tried to change my shell but fish is the only one listed in my shell files.

2

1 Answer

Your second example just begins with (curl.... Which doesn't make any sense. Typo? This should work:

/usr/bin/ruby -e (curl -fsSL ) 

Also, you could also just run curl and save the script to a file (e.g., homebrew.rb) then tell ruby to execute that script: ruby homebrew.rb.

6

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like