Be better at preventing asdf init errors
This commit is contained in:
parent
59fb8aba56
commit
ceac620621
1 changed files with 6 additions and 3 deletions
|
@ -36,16 +36,19 @@ if which rbenv > /dev/null; then
|
||||||
(rbenv rehash &) 2> /dev/null
|
(rbenv rehash &) 2> /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# # init nodenv
|
# init nodenv
|
||||||
if which nodenv > /dev/null; then
|
if which nodenv > /dev/null; then
|
||||||
eval "$(nodenv init --no-rehash -)"
|
eval "$(nodenv init --no-rehash -)"
|
||||||
(nodenv rehash &) 2> /dev/null
|
(nodenv rehash &) 2> /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d $HOME/.asdf ]; then
|
if [ -f $HOME/.asdf ]; then
|
||||||
source $HOME/.asdf/asdf.sh
|
source $HOME/.asdf/asdf.sh
|
||||||
fi
|
fi
|
||||||
. ~/.asdf/plugins/java/set-java-home.zsh
|
|
||||||
|
if [ -f $HOME/.asdf/plugins/java/set-java-home.zsh ]; then
|
||||||
|
source $HOME/.asdf/plugins/java/set-java-home.zsh
|
||||||
|
fi
|
||||||
|
|
||||||
# init direnv
|
# init direnv
|
||||||
if which direnv > /dev/null; then
|
if which direnv > /dev/null; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue