diff options
| author | Ahmed Abdelhalim <[email protected]> | 2025-10-25 16:34:59 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2025-10-25 16:34:59 +0200 |
| commit | 2bc58195264d50c1a1680cc367145af4e883c37b (patch) | |
| tree | eadd4498efeae5cb7eb913aed815cc7a03eb88d4 | |
| parent | 598fe65f17c24c9f90cbde57e2791964b269164e (diff) | |
Fix nvm setup not to use brew --prefix
| -rw-r--r-- | .bash_profile | 7 |
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 |
