.profile: Add more brew directories

This commit is contained in:
Salt 2020-04-03 06:55:31 -05:00
parent b80531fb4c
commit 3979a5c6d1

View File

@ -41,10 +41,15 @@ while [ "${PATH#:}" != "$PATH" ]; do
done
PATH="$desiredpath:$PATH"
# Homebrew
gnubin="/usr/local/opt/coreutils/libexec/gnubin"
if [ -d "$gnubin" ]; then
PATH="$gnubin:$PATH"
for dir in \
"/usr/local/opt/coreutils/libexec/gnubin" \
"/usr/local/opt/util-linux/bin" \
"/usr/local/opt/util-linux/sbin"
do
if [ -d "$dir" ]; then
PATH="$dir:$PATH"
fi
done
# Grab bash_completion, if it exists
[ -f "/etc/profile.d/bash_completion.sh" ] && . "/etc/profile.d/bash_completion.sh"