I installed the GNU core utilities via brew install coreutils
. I also added PATH=$(brew --prefix coreutils)/libexec/gnubin:$PATH
to the beginning of ~/.bash_profile
(and it's auto-sourced in ~/.bashrc
) as to enable accessing these utilities with their default names, ant not prepended with g
.
I also want access to the man
pages of these utilities, so I added MANPATH="/usr/local/opt/coreutils/libexec/gnuman:${MANPATH-/usr/share/man}"
to ~/.bash_profile
as the second line. Unfortunately, when I type man ls
for example, I still get the BSD man page, instead of the Gnu one. How do I fix this?
echo $MANPATH
show?man gcat
?