Fix asdf sourcing if installed via homebrew

This commit is contained in:
Tony Blyler 2023-01-24 11:46:37 -05:00
parent 1ef2375f78
commit f18d06259e

View file

@ -2,8 +2,8 @@ if [ -r ~/.asdf/asdf.sh ]; then
. ~/.asdf/asdf.sh
fi
if command -v brew &> /dev/null && [ -r "$(brew --prefix)/opt/asdf/asdf.sh" ]; then
. "$(brew --prefix)/opt/asdf/asdf.sh"
if command -v brew &> /dev/null && [ -r "$(brew --prefix)/opt/asdf/libexec/asdf.sh" ]; then
. "$(brew --prefix)/opt/asdf/libexec/asdf.sh"
fi
if [ -n "$ASDF_DIR" ]; then