Update asdf PATH handling with its new version

This commit is contained in:
Tony Blyler 2025-02-12 12:35:07 -05:00
parent 85fbc308f0
commit e65417531b
No known key found for this signature in database

View file

@ -20,12 +20,12 @@ if [[ "$OSTYPE" =~ ^darwin ]]; then
done
fi
if [ -r ~/.asdf/asdf.sh ]; then
ASDF_FORCE_PREPEND=1 . ~/.asdf/asdf.sh
fi
if command -v asdf &> /dev/null; then
export PATH="${ASDF_DATA_DIR:-$HOME/.asdf}/shims:$PATH"
if command -v brew &> /dev/null && [ -r "$(brew --prefix)/opt/asdf/libexec/asdf.sh" ]; then
. "$(brew --prefix)/opt/asdf/libexec/asdf.sh"
if ! [ -r "${HOME}/.zcompletions/_asdf" ]; then
asdf completion zsh > "${HOME}/.zcompletions/_asdf"
fi
fi
for editor in nvim vim nano; do