Skip to content

Commit 6dcbac4

Browse files
authored
Merge pull request #13040 from ilya-bobyr/fish-profile-set-MANPATH
nix-profile-daemon.fish: Set MANPATH
2 parents 6fe0545 + 470c521 commit 6dcbac4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/nix-profile-daemon.fish.in

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ else
6262
end
6363
end
6464

65+
# Only use MANPATH if it is already set. In general `man` will just simply
66+
# pick up `.nix-profile/share/man` because is it close to `.nix-profile/bin`
67+
# which is in the $PATH. For more info, run `manpath -d`.
68+
if set --query MANPATH
69+
set --export --prepend --path MANPATH "$NIX_LINK/share/man"
70+
end
71+
6572
add_path "@localstatedir@/nix/profiles/default/bin"
6673
add_path "$NIX_LINK/bin"
6774

0 commit comments

Comments
 (0)