16 ms·
Out of interest, I checked out man man on Linux and found the search logic documented in man 5 manpath. In addition to system directories specified in /etc/manp
by unnah 3y ago
Out of interest, I checked out man man on Linux and found the search logic documented in man 5 manpath. In addition to system directories specified in /etc/manpath.config, the man command checks directories in the user's PATH and maps them to related man directories: pathdir, pathdir/../man, pathdir/man, pathdir/../share/man, and pathdir/share/man are all considered. The MANPATH environment variable overrides all other configuration and should not be necessary.
So, following current practices, installing binaries in ~/.local/bin and man pages in ~/.local/share/man should work without any additional configuration.