Compare commits
2 Commits
d8cde14308
...
461e585f8f
| Author | SHA1 | Date | |
|---|---|---|---|
| 461e585f8f | |||
| 37190452ca |
@ -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
|
||||||
|
|||||||
@ -79,7 +79,9 @@ 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
|
||||||
echo "registry=https://registry.npmmirror.com" > ~/.npmrc
|
if [ $abroad -ne 1 ]; then
|
||||||
|
echo "registry=https://registry.npmmirror.com" > ~/.npmrc
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user