Skip to content

Commit

Permalink
nix-profile.fish: Add local state dir bin to $PATH
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ilya-bobyr committed Feb 5, 2025
1 parent d2425c5 commit c09b6da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/nix-profile.fish.in
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,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
Expand Down

0 comments on commit c09b6da

Please sign in to comment.