diff options
Diffstat (limited to '.bash_profile')
| -rw-r--r-- | .bash_profile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.bash_profile b/.bash_profile index 98ebe8e..cef07c9 100644 --- a/.bash_profile +++ b/.bash_profile @@ -97,7 +97,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 command -v nvm 1>/dev/null 2>&1; then +if [ -f $(brew --prefix nvm)/nvm.sh ]; then export NVM_DIR=~/.nvm source $(brew --prefix nvm)/nvm.sh fi |
