1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 13:51:16 +02:00

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.
This commit is contained in:
Illia Bobyr 2025-01-13 19:17:09 -08:00
parent b509502bd5
commit fc8c11be48
No known key found for this signature in database
GPG key ID: 4D72E6A090EB3E9E

View file

@ -69,6 +69,7 @@ if set --query MANPATH
set --export --prepend --path MANPATH "$NIX_LINK/share/man"
end
add_path "@localstatedir@/nix/profiles/default/bin"
add_path "$NIX_LINK/bin"
# Cleanup