如何通过 Homebrew 安装 tig 文档?

How to install tig docs via Homebrew?

我通过 Homebrew 安装了 tig 并且 tig 工作正常,但是有没有办法也通过 brew 干净地安装它的 man 页面而不是来自源头(即避免 make install-doc,如 https://github.com/jonas/tig/blob/master/INSTALL.adoc 所述)

If you installed Homebrew with standard install directories, i.e. relatives to /opt/homebrew, there are 2 commands to register the binaries and man files to be used:

/usr/bin/sudo -s
echo /opt/homebrew/bin >/etc/paths.d/homebrew
echo /opt/homebrew/share/man >/etc/manpaths.d/homebrew
exit

If you are using bash or zsh as your actual shell, you will have to enter one simple command to take into account these 2 environment modifications:

. /etc/profile

If you want to learn more how these 2 directories are used under MacOS X, read:

man path_helper

-- daniel Azuelos