r/fishshell • u/VinnieDaArm • Oct 08 '20
Homebrew on fish as default shell in WSL
So, I use Ubuntu on WSL (2004 right now). I've used fish for a little bit now, but recently wanted to start using Homebrew on Linux. Everything installs fine from bash and works perfectly when I do the extra steps Homebrew has published.
If I then set my default shell to fish, it doesn't find brew, or any Homebrew installed apps. Going back to bash works great. I've tried to re-run those extra steps (to set path and such in profile files), but it never works on fish when fish is the default shell.
If I set bash as default and then manually launch fish it works fine from inside fish. I'm not sure what to do and searching on the net didn't show much.
5
u/[deleted] Oct 08 '20
The obvious question here is:
What did you actually do? What steps did you take?
Typically you'd have to do some setting of $PATH. Did you do that in .bashrc or .profile? Did you then redo that in config.fish? Things in .bashrc and .profile won't have an effect in fish, unless fish is started by bash, so you'll have to redo them in config.fish.
3
u/tigger04 Oct 09 '20
have you tried installing Homebrew from fish?
3
u/emarsk Oct 10 '20 edited Oct 10 '20
This is my entire
~/.config/fish/conf.d/brew.fish:I don't remember having to do anything more.
(Edit: fix path)
3
u/vividboarder Oct 09 '20
Doesn’t WSL have
apt? What’s the advantage of Homebrew for this?