Skip to content

Conversation

@pothi
Copy link

@pothi pothi commented Aug 5, 2025

Direct quote from https://fishshell.com/docs/current/index.html#configuration ...

.fish scripts in ~/.config/fish/conf.d/ are also automatically executed before config.fish.

brew initializes itself via config.fish file. So, the PATH doesn't have /opt/homebrew/bin when ~/.config/fish/conf.d/fnm.fish is executed, resulting in the following error...

fish: Unknown command: fnm
~/.config/fish/conf.d/fnm.fish (line 5): 
  fnm env | source
  ^~^
from sourcing file ~/.config/fish/conf.d/fnm.fish
	called on line 253 of file /usr/local/share/fish/config.fish
from sourcing file /usr/local/share/fish/config.fish
	called during startup
Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish

This pull request sets correct PATH to initialize fnm on fish shell.

@changeset-bot
Copy link

changeset-bot bot commented Aug 5, 2025

⚠️ No Changeset found

Latest commit: 7dd8528

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Aug 5, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fnm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 5, 2025 4:44am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant