From 4cc4144fc8bab750b3e667d2f745ed78995de62e Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Mon, 4 Nov 2024 21:51:47 +0100 Subject: Fix NVM bash command --- .bash_profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3