summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2025-10-25 16:34:59 +0200
committerAhmed Abdelhalim <[email protected]>2025-10-25 16:34:59 +0200
commit2bc58195264d50c1a1680cc367145af4e883c37b (patch)
treeeadd4498efeae5cb7eb913aed815cc7a03eb88d4
parent598fe65f17c24c9f90cbde57e2791964b269164e (diff)
Fix nvm setup not to use brew --prefix
-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