feat(shell): prioritize bun global bin in bash/fish/zsh PATH
Merged
SH
5mo ago+43+43+01234567890123456789-12-12-01234567890123456789
Summary
- Add
$HOME/.bun/install/global/node_modules/.binas the highest-priority PATH entry in bash, fish, and zsh - Mirrors the existing pattern that prepends
~/.bun/bin, so global packages installed viabun install -gresolve from the actual node_modules.bindirectory first - Updated locations: bash
bashrcExtra+profileExtra+bash_env.sh, zshenvExtra+initContent, fishshellInit+loginShellInit+interactiveShellInit
Test plan
-
nix flake check --no-buildpasses - After
make switch,echo $PATHin each shell shows~/.bun/install/global/node_modules/.binat the front - Globally
bun add-ed CLIs still resolve as expected
Summary by cubic
Prepends $HOME/.bun/install/global/node_modules/.bin to PATH with highest priority in bash, zsh, and fish so global bun CLIs resolve first across interactive and login shells. Mirrors ~/.bun/bin precedence and ensures it wins over /opt/homebrew/bin on macOS.
-
Bug Fixes
- Updated specs to assert the new PATH order and that bun globals win over Homebrew on macOS (bash/zsh/fish).
- SSH config: switched
IdentityFileto list type and forced*to use~/.ssh/id_ed25519withlib.mkForceto override@home-managerdefaults. - Scoped
llama-cppVulkan override toisDesktopfor simpler platform handling.
-
Refactors
- Nixfmt the SSH module header.