From 2bc58195264d50c1a1680cc367145af4e883c37b Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Sat, 25 Oct 2025 16:34:59 +0200 Subject: Fix nvm setup not to use brew --prefix --- .bash_profile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to '.bash_profile') 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 -- cgit v1.2.3