-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Global install doesn't place commands in PATH #18
Comments
Yep, I never implemented that feature. but has a plan to support it as described in #14 (comment) |
Thanks! 🙏 Looks like the only thing missing for this is the shell rc file edits made by the bun install script. You mentioned this in the linked comment: "... users have to manually configure the A workaround for anyone running into this is to run the bun install script to get the changes to your shell rc file:
The uninstall step comes from the uninstall issue in bun. |
@doubledup Just add |
And even you can customize your global installation path, see https://bun.sh/docs/runtime/bunfig#install-globalbindir |
However, I've changed my mind, I think it's not a role of this asdf plugin. I think the current behavior of Bun is not suitable for managing global installations. See https://gist.github.com/cometkim/eb2842d67b40e583e4886e9b897a6af0 Maybe you can request the upstream to change its behavior to be more sensible |
just filed a ticket to upstream oven-sh/bun#6928 |
Bun has the problem of not being well suited to handle global installations (See oven-sh/bun#6928) I could override the behavior like the asdf-nodejs plugin does for npm, but I believe that's not the correct move. I would not recommend managing global installations via Bun until this is discussed upstream. |
From the docs,
bun install --global cowsay
should makecowsay
available. Instead I getfish: Unknown command: cowsay
, even afterasdf reshim
and starting a new shell.This is in
fish shell 3.6.1
,kitty 0.30.1
andmacOS 14.1
. The same error occurs in the defaultTerminal 2.14 (452)
, and inbash 5.2.15(1)-release (aarch64-apple-darwin22.1.0)
andzsh 5.9 (x86_64-apple-darwin23.0)
. Combinations of Terminal with bash & zsh also produce this error.The text was updated successfully, but these errors were encountered: