1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 22:11:15 +02:00

Merge pull request #13040 from ilya-bobyr/fish-profile-set-MANPATH

nix-profile-daemon.fish: Set MANPATH
This commit is contained in:
Jörg Thalheim 2025-04-17 10:24:19 +02:00 committed by GitHub
commit 6dcbac4278
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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"