.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 done
PATH="$desiredpath:$PATH" PATH="$desiredpath:$PATH"
# Homebrew # Homebrew
gnubin="/usr/local/opt/coreutils/libexec/gnubin" for dir in \
if [ -d "$gnubin" ]; then "/usr/local/opt/coreutils/libexec/gnubin" \
PATH="$gnubin:$PATH" "/usr/local/opt/util-linux/bin" \
fi "/usr/local/opt/util-linux/sbin"
do
if [ -d "$dir" ]; then
PATH="$dir:$PATH"
fi
done
# Grab bash_completion, if it exists # Grab bash_completion, if it exists
[ -f "/etc/profile.d/bash_completion.sh" ] && . "/etc/profile.d/bash_completion.sh" [ -f "/etc/profile.d/bash_completion.sh" ] && . "/etc/profile.d/bash_completion.sh"