From e73ce6b56a0ece43f030cc7a96dd94ab7be98785 Mon Sep 17 00:00:00 2001 From: Yax <1949284+kianby@users.noreply.github.com> Date: Sat, 19 Jun 2021 12:07:34 +0200 Subject: [PATCH] fix nodenv config --- dot_bashrc.d/node.bashrc.tmpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dot_bashrc.d/node.bashrc.tmpl b/dot_bashrc.d/node.bashrc.tmpl index 3706393..8dc9de2 100644 --- a/dot_bashrc.d/node.bashrc.tmpl +++ b/dot_bashrc.d/node.bashrc.tmpl @@ -4,11 +4,13 @@ if [ -f "{{ .extra_ca_cert }}" ]; then fi export NODE_BUILD_CURL_OPTS=--insecure -if [ -d "$HOME/.nvm" ]; then +if [ -d "$HOME/.nodenv" ]; then # Nodenv (https://github.com/nodenv/nodenv) export PATH="$HOME/.nodenv/bin:$PATH" eval "$(nodenv init -)" +fi +if [ -d "$HOME/.nvm" ]; then # NVM (https://github.com/nvm-sh/nvm) export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm