Some commands have been installed with the prefix g
.
If you need to use these commands with their normal names, you can add some gnubin
directory to your PATH from your ~/.bashrc
or ~/.bash_profile
like:
GNU_TOOLCHAIN=true
if $GNU_TOOLCHAIN; then
# base
export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
export PATH="/usr/local/opt/findutils/libexec/gnubin:$PATH"
export PATH="/usr/local/opt/gawk/libexec/gnubin:$PATH"
export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
export PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH"
export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"
export MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"
export MANPATH="/usr/local/opt/findutils/libexec/gnuman:$MANPATH"
export MANPATH="/usr/local/opt/gawk/libexec/gnuman:$MANPATH"
export MANPATH="/usr/local/opt/gnu-sed/libexec/gnuman:$MANPATH"
export MANPATH="/usr/local/opt/gnu-tar/libexec/gnuman:$MANPATH"
export MANPATH="/usr/local/opt/grep/libexec/gnuman:$MANPATH"
# base-devel
export PATH="/usr/local/opt/binutils/bin:$PATH"
export PATH="/usr/local/opt/gnu-which/libexec/gnubin:$PATH"
export MANPATH="/usr/local/opt/binutils/share/gnuman:$MANPATH"
export MANPATH="/usr/local/opt/gnu-which/libexec/gnuman:$MANPATH"
# others
#export PATH="/usr/local/opt/ed/libexec/gnubin:$PATH"
#export PATH="/usr/local/opt/gnu-indent/libexec/gnubin:$PATH"
#export MANPATH="/usr/local/opt/ed/libexec/gnuman:$MANPATH"
#export MANPATH="/usr/local/opt/gnu-indent/libexec/gnuman:$MANPATH"
fi