前端工程师拿到全新的 Mac 需要做哪些准备

博主因更换Mac电脑,记录重装环境的过程。包括在终端安装zsh、Git、brew等工具,安装iTerm、VS Code等应用,还提及Charles和WebStorm的激活方法。此外,介绍了Git设置用户名和邮箱、生成公钥等操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

最近苹果退出了新款 Mac,用了3年15款Pro之后,终于盼到18款的降价,于是含泪更新换代

但是每次换电脑,重装环境的好多东西记不清,于是记个笔记

 

 

一、终端

安装 zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

如果没有安装 Git,会首先提示安装 Git

 

安装 brew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

 

安装 nvm

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash

然后使用 nvm 安装指定版本的 node

 

安装 nrm 

npm install -g nrm
nrm ls
nrm use taobao

 

安装 yarn

brew install yarn

 

 

二、应用

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/

 

 

三、Git

设置用户名和邮箱

git config --global user.name "yourname" 
git config --global user.email "youremail@qq.com"

生成公钥

ssh-keygen

查看公钥

cat ~/.ssh/id_rsa.pub

 

然后就可以起飞了~

 

转载于:https://www.cnblogs.com/wisewrong/p/10925368.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值