summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhineng Li <[email protected]>2025-12-30 17:33:59 +0800
committerZhineng Li <[email protected]>2025-12-30 17:33:59 +0800
commitba9ecf17161262a34ca395750bf18071bf6ce125 (patch)
tree9b81206783abfd3ca96e150c1b64a26fb8a5a35c
parent6661760ddef7730b593a6042721813c11781db4e (diff)
install nvm
-rw-r--r--.zshrc5
-rwxr-xr-xsetup.sh3
2 files changed, 8 insertions, 0 deletions
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