From ba9ecf17161262a34ca395750bf18071bf6ce125 Mon Sep 17 00:00:00 2001 From: Zhineng Li Date: Tue, 30 Dec 2025 17:33:59 +0800 Subject: install nvm --- .zshrc | 5 +++++ setup.sh | 3 +++ 2 files changed, 8 insertions(+) diff --git a/.zshrc b/.zshrc index 0694465..5beef03 100644 --- a/.zshrc +++ b/.zshrc @@ -22,3 +22,8 @@ alias gpull='git pull' alias dotfiles='cd ~/.dotfiles' alias dl='cd ~/Downloads' alias update='brew update && brew upgrade && brew autoremove && brew cleanup' + +# Node version manager +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" +[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" diff --git a/setup.sh b/setup.sh index c33d68b..5220cfa 100755 --- a/setup.sh +++ b/setup.sh @@ -51,3 +51,6 @@ fi if [ ! -e "$HOME/.newsboat" ]; then ln -s "$dotfiles/.newsboat" "$HOME/.newsboat" fi + +# Install verion manager for node.js +curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash -- cgit v1.2.3