MaxRussell
MaxRussell

Reputation: 651

How to add Brew to path, Fish on Ventura

I've got Fish installed on Ventura (via the installer) as my default Shell. I've also installed Brew (via the installer).

I've seen instructions for how to add it to .zsh profile, but how / where do I add this to fish so that running brew from fish is pointed at correct place?

Upvotes: 8

Views: 6121

Answers (2)

Nikolaos Georgiou
Nikolaos Georgiou

Reputation: 2874

You can create a file in your fish conf.d folder and run brew shellenv to let it add itself to the path and do whatever else it needs.

This is what I have:

$ cat ~/.config/fish/conf.d/brew.fish
/opt/homebrew/bin/brew shellenv | source

Upvotes: 0

ridiculous_fish
ridiculous_fish

Reputation: 18561

Use fish_add_path. Documentation is here.

Example: fish_add_path /opt/homebrew/bin

Upvotes: 12

Related Questions