Skip to content

Commit 52bb563

Browse files
committed
ensure zsh/configs/post/path.zsh works when asdf.sh file is missing in version 0.16.1 of asdf
1 parent 219a6b2 commit 52bb563

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zsh/configs/post/path.zsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ PATH="$HOME/.bin:/usr/local/sbin:$PATH"
44
# Try loading ASDF from the regular home dir location
55
if [ -f "$HOME/.asdf/asdf.sh" ]; then
66
. "$HOME/.asdf/asdf.sh"
7-
elif which brew >/dev/null; then
7+
elif which brew >/dev/null && [ -f "$(brew --prefix asdf)/libexec/asdf.sh" ]; then
88
. "$(brew --prefix asdf)/libexec/asdf.sh"
99
fi
1010

0 commit comments

Comments
 (0)