NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

correct way to append to search directories for man



I'm scratching my head trying to add a path to the manpath so that I don't lose the existing search directories:

man -p
/usr/share/man/man1
/usr/X11R7/man/man1
/usr/pkg/man/man1
/usr/share/man/man8/amd64
/usr/share/man/man8/x86
/usr/share/man/man8
/usr/pkg/man/man8
/usr/share/man/man6
/usr/pkg/man/man6
/usr/share/man/man2
/usr/share/man/man3
/usr/X11R7/man/man3
/usr/pkg/man/man3
/usr/share/man/man3lua
/usr/share/man/man4/x86
/usr/share/man/man4
/usr/X11R7/man/man4/x86
/usr/X11R7/man/man4
/usr/share/man/man5
/usr/X11R7/man/man5
/usr/pkg/man/man5
/usr/share/man/man7
/usr/X11R7/man/man7
/usr/pkg/man/man7
/usr/share/man/man3f
/usr/share/man/man9/x86
/usr/share/man/man9
/usr/share/man/man9lua

I just want to get /usr/local/share/man into the mix. I tried:
export MANPATH=/usr/local/share/man:$MANPATH

and various related incantations and all I wound up with was my directory being searched and not the others - which makes sense cuz MANPATH overrides the path... nevermind that this isn't how it works on linux or freebsd or...

I also tried adding a section in /etc/man.conf where all those other directories come from:
# Other sections that represent complete man subdirectories.
X11R7           /usr/X11R7/man/
packages        /usr/pkg/man/
local           /usr/local/man/
# mine
share            /usr/local/share/man/

No go. I tried running:
makemandb -f

in the hopes that the /etc/man.conf file didn't cause it to be picked up.

I rebooted.

No go. What do I need to do to get my directory added into the search directories?

Thanks,

Will



Home | Main Index | Thread Index | Old Index