Skip to content

Commit a987e42

Browse files
committed
chore: handle alt. nvm install
1 parent 6f3dd76 commit a987e42

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

dot_zshrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,16 @@ if command -v oh-my-posh &> /dev/null; then
8383
fi
8484
fi
8585

86+
# Load nvm from either $HOME/.nvm or $HOME/.config/nvm
8687
if [ -f "$HOME/.nvm/nvm.sh" ]; then
8788
export NVM_DIR="$HOME/.nvm"
89+
elif [ -f "$HOME/.config/nvm/nvm.sh" ]; then
90+
export NVM_DIR="$HOME/.config/nvm"
91+
else
92+
NVM_DIR=""
93+
fi
94+
95+
if [ -n "$NVM_DIR" ] && [ -f "$NVM_DIR/nvm.sh" ]; then
8896
chmod +x "$NVM_DIR/nvm.sh"
8997
source "$NVM_DIR/nvm.sh" # This loads nvm
9098

0 commit comments

Comments
 (0)