简体   繁体   English

如何通过Homebrew安装tig文档?

[英]How to install tig docs via Homebrew?

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

If you installed Homebrew with standard install directories, ie relatives to /opt/homebrew, there are 2 commands to register the binaries and man files to be used: 如果您使用标准安装目录(即/ opt / homebrew的相对目录)安装Homebrew,则有2条命令来注册要使用的二进制文件和man文件:

 /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: 如果您将bash或zsh用作实际的shell,则必须输入一个简单的命令来考虑这两个环境修改:

 . /etc/profile 

If you want to learn more how these 2 directories are used under MacOS X, read: 如果您想了解更多如何在MacOS X下使用这两个目录,请阅读:

 man path_helper 

-- daniel Azuelos - 丹尼尔·阿祖鲁斯

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM