diff options
| author | Ahmed Abdelhalim <[email protected]> | 2024-11-04 21:51:47 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2024-11-04 21:51:47 +0100 |
| commit | 4cc4144fc8bab750b3e667d2f745ed78995de62e (patch) | |
| tree | b0be74ca3e9924b4a1cc3a7cd2515db71fd5cfce | |
| parent | 68da6e62e82ecf57b6a82acf7c4402dd1ddb4aa3 (diff) | |
Fix NVM bash command
| -rw-r--r-- | .bash_profile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.bash_profile b/.bash_profile index d0cc212..495fa88 100644 --- a/.bash_profile +++ b/.bash_profile @@ -92,7 +92,7 @@ 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 [ -d $HOME/.nvm ]; then +if command -v nvm 1>/dev/null 2>&1; then export NVM_DIR=~/.nvm source $(brew --prefix nvm)/nvm.sh fi |
