-
Notifications
You must be signed in to change notification settings - Fork 488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The man command cannot find the manual for software after adding the path of the bin directory to the environment variable $PATH. #4522
Comments
Would it be possible to use msys2 as explain in msys2.org page? Why do you want to add paths in PATH environment variable? |
Because I want to use nvim anywhere. |
This nvim's version is 0.10.0. It can't be installed with pacman. |
I might be missreading manpath(5), but it looks to me like |
I didn‘t change the path of nvim.1. This was downloaded from the official repository of Neovim on GitHub. After adding neovim/bin to $PATH on Linux(ubuntu), using “man nvim” allows me to find nvim.1 located in the share/man/man1 directory. |
When the bin environment variable is added, there is no need to manually include the path of nvim.1 in $MANPATH. On Linux(ubuntu), the man command will automatically search for nvim.1 in the share/man/man1 directory at the same level as bin. |
I'm not talking about modifying
That reads to me like it finds Looking at a linux machine the sub directories seem to be correct, though. |
The following command work in my case.
neovim extracted in |
If it’s necessary to individually add the man directory to the MANPATH for each software installation, it would be too cumbersome. It would be great if the man command in msys2 could behave like it does in Ubuntu, where simply adding nvim/bin to the PATH would allow it to find nvim.1 located in nvim/share/man/man1. |
Unsetting |
Thanks. Simply comment out the assignment to MANPATH in /etc/profile. |
Here, ‘bin’ is an abbreviation for ‘binary,’ but manual files are not binary files. Therefore, I believe we can exclude the possibility of manuals being stored in the ‘bin’ directory. |
This should be fixed in filesystem package in msys2-packages. Migrating the issue... |
Not completed... |
eg. When I add the directory /opt/nvim/bin to $PATH, the command "man -w nvim" can't find it, even the nvim/share/man/man1/nvim.1 exists.
The text was updated successfully, but these errors were encountered: