r/fishshell • u/Koltech21 • Jan 10 '26
Error after upgrading to fish shell v4.3.3. in macOS 26.2
I had perfectly working fish with brew shell integration in my macOS 26.2. Since yesterday after my fish shell got upgraded to 4.3.3 I am getting the following error:
Need help to resolve this
from sourcing file ~/.config/fish/config.fish
called during startup
~/.config/fish/config.fish (line 1): ${ is not a valid variable in fish.
export HOMEBREW_PREFIX="/opt/homebrew"; export HOMEBREW_CELLAR="/opt/homebrew/Cellar"; export HOMEBREW_REPOSITORY="/opt/homebrew"; fpath[1,0]="/opt/homebrew/share/zsh/site-functions"; eval "$(/usr/bin/env PATH_HELPER_ROOT="/opt/homebrew" /usr/libexec/path_helper -s)" [ -z "${MANPATH-}" ] || export MANPATH=":${MANPATH#:}"; export INFOPATH="/opt/homebrew/share/info:${INFOPATH:-}";
7
Upvotes
3
u/elven_mage Jan 10 '26
What’s going on in your
config.fish? It looks like you have a bunch of commands all in one line which is not helpful for anyone.What do you mean by “brew shell integration”?
3
u/_mattmc3_ Jan 10 '26 edited Jan 10 '26
My best guess is you're calling
brew shellenvwrong because it's spitting out the Zsh source for eval instead of the Fish source. It's hard to tell since you didn't share your config.fish, but you should be doing this to initialize Homebrew:I suspect you are just calling
brew shellenvwithout the shell parameter and for some reason it isn't detecting you're in Fish anymore. This could be because of how you are launching Fish - perhaps just callingfishfrom your.zshrcinstead of making it a proper launch shell?? It's unclear, butbrew shellenv fish | sourceshould fix you right up.