summaryrefslogtreecommitdiffstats
path: root/.bash_profile
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2024-11-04 21:51:47 +0100
committerAhmed Abdelhalim <[email protected]>2024-11-04 21:51:47 +0100
commit4cc4144fc8bab750b3e667d2f745ed78995de62e (patch)
treeb0be74ca3e9924b4a1cc3a7cd2515db71fd5cfce /.bash_profile
parent68da6e62e82ecf57b6a82acf7c4402dd1ddb4aa3 (diff)
Fix NVM bash command
Diffstat (limited to '.bash_profile')
-rw-r--r--.bash_profile2
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