MAC环境配置(M1芯片)
0x00 最近换新电脑了
配置要重新配一遍,记录一下,方便大家以后参考。
设备:MBP (M1 PRO)
系统:macOS Ventura 13.1
0x01软件下载地址
安装Brew(这个非常的好用,自动换源)
1  | /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"  | 
安装Command Line Tools
1  | 安装  | 
Oh My Zsh 安装 & 配置
GitHub:
1  | sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"  | 
Gitee ( 国内镜像 )
1  | sh -c "$(curl -fsSL https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh)"  | 
zsh-autosuggestions
代码补全的插件
1  | brew install zsh-autosuggestions  | 
zsh-syntax-highlighting
高亮你的代码命令的插件
1  | brew install zsh-syntax-highlighting  | 
设置固定主题
- 安装完毕后,Oh My Zsh 提供了很多主题风格,我们可以根据自己的喜好,设置主题风格
 
1  | open ~/.zshrc  | 
- 保存这个文件文件,重新打开终端。
 
Java 环境
1  | 奇怪的是用 brew install java11 有问题  | 
暂时到这里,后面配环境再补充
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.




