最近苹果退出了新款 Mac,用了3年15款Pro以后,终于盼到18款的降价,因而含泪更新换代node
可是每次换电脑,重装环境的好多东西记不清,因而记个笔记git
1、终端github
安装 zsh web
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
若是没有安装 Git,会首先提示安装 Gitchrome
安装 brewnpm
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
安装 nvmruby
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
而后使用 nvm 安装指定版本的 nodebash
安装 nrm app
npm install -g nrm nrm ls nrm use taobao
安装 yarnssh
brew install yarn
2、应用
1. iTerm: https://www.iterm2.com/
2. SourceTree: https://www.sourcetreeapp.com/
3. Chrome: https://www.google.cn/chrome/
4. TeamViewer: https://www.teamviewer.com/cn/
5. Charles: https://www.charlesproxy.com/
6. VS Code: https://code.visualstudio.com/
7. WebStorm: https://www.jetbrains.com/webstorm/
8. Gas Mask: https://www.macupdate.com/app/mac/29949/gas-mask/
9. Postman: https://www.getpostman.com/downloads/
10. Typora: https://www.typora.io/
Charles 激活:https://www.zzzmode.com/mytools/charles/
WebStrom 激活:http://idea.lanyus.com/
3、Git
设置用户名和邮箱
git config --global user.name "yourname" git config --global user.email "youremail@qq.com"
生成公钥
ssh-keygen
查看公钥
cat ~/.ssh/id_rsa.pub
而后就能够起飞了~