https://github.com/newset/boot-scripts
scripts for new environment
https://github.com/newset/boot-scripts
Last synced: about 1 month ago
JSON representation
scripts for new environment
- Host: GitHub
- URL: https://github.com/newset/boot-scripts
- Owner: newset
- Created: 2018-04-24T06:50:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-05-30T15:05:37.000Z (about 2 years ago)
- Last Synced: 2025-01-13T17:17:06.872Z (over 1 year ago)
- Language: Shell
- Size: 64.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# boot-scripts
[git](doc/git.md)
## Homebrew 源
- 清华
```
export MIRROR=https://mirrors.tuna.tsinghua.edu.cn
export MIRROR_GIT=https://mirrors.tuna.tsinghua.edu.cn/git
```
- 腾讯
```
export MIRROR=https://mirrors.cloud.tencent.com
export MIRROR_GIT=https://mirrors.cloud.tencent.com
```
### 安装软件和shell配置
```
sh -c "$(curl -fsSL https://raw.githubusercontent.com/newset/boot-scripts/master/install.sh)"
```
### 安装Flutter
```
sh -c "$(curl -fsSL https://raw.githubusercontent.com/newset/boot-scripts/master/flutter.sh)"
```
### 安装 App
```
sh -c "$(curl -fsSL https://raw.githubusercontent.com/newset/boot-scripts/master/app.sh)"
```
### 安装前端开发工具
```
sh -c "$(curl -fsSL https://raw.githubusercontent.com/newset/boot-scripts/master/web.sh)"
```
### 安装Android开发工具
```
sh -c "$(curl -fsSL https://raw.githubusercontent.com/newset/boot-scripts/master/android.sh)"
```
## 配置
### NPM源设置
```
npm config set registry http://r.cnpmjs.org --global
npm config set disturl https://npm.taobao.org/mirrors/node --global
npm i yarn -g
yarn config set registry http://r.cnpmjs.org --global
yarn config set disturl https://npm.taobao.org/mirrors/node --global
```
### 添加配置文件
- 添加`.zshenv`文件
```
curl -fsSL https://raw.githubusercontent.com/newset/boot-scripts/master/env/.zshenv > $HOME/.zshenv
```
- 添加`.curlrc`文件
```
curl -fsSL https://raw.githubusercontent.com/newset/boot-scripts/master/env/.curlrc > $HOME/.curlrc
```
- 添加`.ssh/config`github配置
```
echo "Host github.com
HostName github.com
User git
ProxyCommand nc -v -x 127.0.0.1:1080 %h %p" >> $HOME/.ssh/config
```