Update asdf PATH handling with its new version
This commit is contained in:
parent
85fbc308f0
commit
e65417531b
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue