diff --git a/.profile b/.profile index e160de39..d01b6168 100755 --- a/.profile +++ b/.profile @@ -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" -fi +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"