Repository navigation
Set $MANPATH - #1005
Merged
Merged
Set $MANPATH#1005
Conversation
Currently, man has issues finding man pages for Nix-installed application (also, `nix-env --help` doesn't work). The issue is caused by custom `$MANPATH` set by my system. That makes man use it instead of searching in default location. Either of next lines workaround the issue: ```sh unset MANPATH export MANPATH=$HOME/.nix-profile/share/man:$MANPATH ``` This patch adds the later line to the `nix-profile.sh` if user has `MANPATH` set. (Not clearing `MANPATH` as that would be disrespect of user's preferences.) As a side-effect, host's man might find man pages installed by Nix.
Member
|
Duplicates #783 |
Member
Author
|
Oh.. thanks, haven't seen it. Anyway, this one does seem to address comments that were blocking #783. |
Member
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently, man has issues finding man pages for Nix-installed
application (also,
nix-env --helpdoesn't work). The issue is causedby custom
$MANPATHset by my system. That makes man use it instead ofsearching in default location.
Either of next lines workaround the issue:
This patch adds the later line to the
nix-profile.shif user hasMANPATHset. (Not clearingMANPATHas that would be disrespect ofuser's preferences.)
As a side-effect, host's man might find man pages installed by Nix.