Skip to content

Commit fc8c11b

Browse files
committed
nix-profile.fish: Add local state dir bin to $PATH
It seems reasonable to add both `$HOME/.profile/bin` and `@localstatedir@/nix/profiles/default/bin` to `$PATH` for both user local and daemon based nix execution. Nix daemon execution mode does not affect these path.
1 parent b509502 commit fc8c11b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/nix-profile.fish.in

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ if set --query MANPATH
6969
set --export --prepend --path MANPATH "$NIX_LINK/share/man"
7070
end
7171

72+
add_path "@localstatedir@/nix/profiles/default/bin"
7273
add_path "$NIX_LINK/bin"
7374

7475
# Cleanup

0 commit comments

Comments
 (0)