summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.bash_profile7
1 files changed, 3 insertions, 4 deletions
diff --git a/.bash_profile b/.bash_profile
index bec6eeb..cef88f1 100644
--- a/.bash_profile
+++ b/.bash_profile
@@ -81,11 +81,10 @@ if command -v rbenv 1>/dev/null 2>&1; then
fi
# ==== NVM config
-# node version manager from homebrew ,the source line to move install location
-# and prevent Node installs being lost upon upgrading nvm.
-if [ -f "$(brew --prefix nvm)/nvm.sh" ]; then
+# shellcheck source=/dev/null
+if [ -f "$HOME/.nvm/nvm.sh" ]; then
export NVM_DIR=~/.nvm
- source "$(brew --prefix nvm)/nvm.sh"
+ source "$HOME/.nvm/nvm.sh"
fi
# ==== Vault completeion