add nvm lazy loading to zsh

This commit is contained in:
2026-07-20 20:53:56 -05:00
parent 53b43eda88
commit 7347b64eba
2 changed files with 7 additions and 0 deletions

View File

@@ -44,6 +44,10 @@ sudo apt-get install -y zsh
sudo chsh $INSTALL_USER -s /bin/zsh sudo chsh $INSTALL_USER -s /bin/zsh
cp ./utils/dotzshrc "$HOME/.zshrc" cp ./utils/dotzshrc "$HOME/.zshrc"
# zsh nvm lazy loading (so shell doesn't take a million years to start)
git clone https://github.com/lukechilds/zsh-nvm.git "$HOME/.nvm-zsh"
# other install stuff already in .zshrc
# starship (shell prompt) # starship (shell prompt)
curl -sS https://starship.rs/install.sh | sudo sh -s -- -y curl -sS https://starship.rs/install.sh | sudo sh -s -- -y
# echo 'eval "$(starship init zsh)"' | tee "$HOME/.zshrc" -a # should already be in zshrc # echo 'eval "$(starship init zsh)"' | tee "$HOME/.zshrc" -a # should already be in zshrc

View File

@@ -22,5 +22,8 @@ alias rmd="rndrmarkdown"
# colored GCC warnings and errors # colored GCC warnings and errors
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
export NVM_LAZY_LOAD=true
source "$HOME/.nvm-zsh/zsh-nvm.plugin.zsh"
eval "$(starship init zsh)" eval "$(starship init zsh)"