oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
73.26k stars 2.69k forks source link

$XDG_CONFIG_HOME doesn't fallback for bunfig.toml #12987

Open sequencerr opened 1 month ago

sequencerr commented 1 month ago

What version of Bun is running?

No response

What platform is your computer?

No response

What steps can reproduce the bug?

  1. Use machine where $XDG_CONFIG_HOME is not defined.
  2. Create "${XDG_CONFIG_HOME:-$HOME/.config}/.bunfig.toml"
  3. run bun i

What is the expected behavior?

https://bun.sh/docs/runtime/bunfig#global-vs-local

What do you see instead?

No response

Additional information

https://wiki.archlinux.org/title/XDG_Base_Directory

sequencerr commented 1 month ago
alias bun="bun -c=\"${XDG_CONFIG_HOME:-$HOME/.config}/.bunfig.toml\""

workaround doesn't work at all :(