Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/newset/boot-scripts
scripts for new environment
https://github.com/newset/boot-scripts
Last synced: 2 days 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 6 years ago)
- Default Branch: master
- Last Pushed: 2024-02-05T07:06:23.000Z (9 months ago)
- Last Synced: 2024-04-17T05:48:15.233Z (7 months ago)
- Language: Shell
- Size: 63.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 --globalnpm 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
```