Skip to content

Commit 0f8ed14

Browse files
committed
fix: prioritize Nix packages over /usr/local/bin in PATH
Move /usr/local/bin to the end of PATH so Nix-managed packages (like nodejs/npm from home-manager) take precedence over system installations from Homebrew or other package managers.
1 parent 5b8bd9f commit 0f8ed14

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dotfiles/.profile.shared

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ export PATH="$HOME/go/bin:$PATH"
2424
# NPM: npm install -g <package> (when configured with prefix=~/.npm-global)
2525
export PATH="$HOME/.npm-global/bin:$PATH"
2626

27-
export PATH="/usr/local/bin:$PATH"
27+
# System binaries (lower priority than Nix packages)
28+
export PATH="$PATH:/usr/local/bin"
2829

2930
if command -v python3 &> /dev/null; then
3031
# Set these if python3 is available

0 commit comments

Comments
 (0)