Be better at preventing asdf init errors

This commit is contained in:
Andrew Tomaka 2021-05-21 08:15:34 -04:00
parent 59fb8aba56
commit ceac620621
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE

View file

@ -36,16 +36,19 @@ if which rbenv > /dev/null; then
(rbenv rehash &) 2> /dev/null
fi
# # init nodenv
# init nodenv
if which nodenv > /dev/null; then
eval "$(nodenv init --no-rehash -)"
(nodenv rehash &) 2> /dev/null
fi
if [ -d $HOME/.asdf ]; then
if [ -f $HOME/.asdf ]; then
source $HOME/.asdf/asdf.sh
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
if which direnv > /dev/null; then