The yellow man feature of the touch bar does not seem to use manpath
,
for example /opt/homebrew/share/man/ is ignored. How do you configure this?
Third party man pages in touch bar
manterminaltouch-bar
Related Question
- MacBook – how to “store” a specific keyboard shortcut on mac touch bar
- Exit Man opened from the touch bar
- MacBook – Fully disable MacBook Pro’s Touch Bar
- Touch Bar – Alternate Key Combination to Show App controls
- MacBook – Customizing touch bar word predictions
- MacBook – There is no process “Touch Bar Agent”
Best Answer
You need to add a
MANPATH
entry to/private/etc/man.conf
as follows:This will direct
man
to include the specified path directory in the search path (fromman man
):If have tested it in Big Sur and it works.
Why doesn't
man
honor the MANPATH environment variable in this case? When you look for a man page by pressing the "Open man Page for Selection" option in the Touch Bar, a process like the following is executed:where:
username
is your usernamecommand
is the command whose man page you want to displaylogin
startsman
directly, and it is not aware of the value of theMANPATH
variable.