Compare commits

...

2 Commits

Author SHA1 Message Date
461e585f8f update zsh 2024-10-16 23:24:48 +08:00
37190452ca update nvm 2024-10-16 23:24:38 +08:00
2 changed files with 4 additions and 2 deletions

View File

@ -135,7 +135,7 @@ configure_vim() {
} }
configure_zsh() { configure_zsh() {
[ -f ~/.zshrc ] && return [ -d ~/.oh-my-zsh ] && return
[ $offline -eq 1 ] && return [ $offline -eq 1 ] && return
if confirm_action "要配置 zsh 吗?" "Y"; then if confirm_action "要配置 zsh 吗?" "Y"; then

View File

@ -79,8 +79,10 @@ configure_nvm() {
nvm install lts/iron nvm install lts/iron
nvm alias default lts/iron nvm alias default lts/iron
nvm install-latest-npm nvm install-latest-npm
if [ $abroad -ne 1 ]; then
echo "registry=https://registry.npmmirror.com" > ~/.npmrc echo "registry=https://registry.npmmirror.com" > ~/.npmrc
fi fi
fi
} }
# ============================================================ # ============================================================