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

nix-profile-daemon.fish: Set MANPATH

There seems to be no good reason for `nix-profile.fish` to set
`$MANPATH` while it being unset when `nix-profile-daemon.fish` is used.
This commit is contained in:
Illia Bobyr 2025-01-13 19:23:06 -08:00
parent b509502bd5
commit 470c521bcc
No known key found for this signature in database
GPG key ID: 4D72E6A090EB3E9E

View file

@ -62,6 +62,13 @@ else
end end
end end
# Only use MANPATH if it is already set. In general `man` will just simply
# pick up `.nix-profile/share/man` because is it close to `.nix-profile/bin`
# which is in the $PATH. For more info, run `manpath -d`.
if set --query MANPATH
set --export --prepend --path MANPATH "$NIX_LINK/share/man"
end
add_path "@localstatedir@/nix/profiles/default/bin" add_path "@localstatedir@/nix/profiles/default/bin"
add_path "$NIX_LINK/bin" add_path "$NIX_LINK/bin"