diff --git a/zsh/configs/post/path.zsh b/zsh/configs/post/path.zsh index 284983b..6f1b5ca 100644 --- a/zsh/configs/post/path.zsh +++ b/zsh/configs/post/path.zsh @@ -5,9 +5,7 @@ PATH="$HOME/.bin:/usr/local/sbin:$PATH" if [ -f "$HOME/.asdf/asdf.sh" ]; then . "$HOME/.asdf/asdf.sh" elif which brew >/dev/null && - BREW_DIR="$(dirname `which brew`)/.." && - [ -f "$BREW_DIR/opt/asdf/asdf.sh" ]; then - . "$BREW_DIR/opt/asdf/asdf.sh" + . "$(brew --prefix asdf)/libexec/asdf.sh" fi # mkdir .git/safe in the root of repositories you trust