MAC环境配置(M1芯片)

0x00 最近换新电脑了

配置要重新配一遍,记录一下,方便大家以后参考。

设备:MBP (M1 PRO)

系统:macOS Ventura 13.1

0x01软件下载地址

https://www.macw.com/

https://macapp.org.cn/app/

安装Brew(这个非常的好用,自动换源)

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

安装Command Line Tools

安装
安装Command Line Tools

xcode-select --install 

Oh My Zsh 安装 & 配置

GitHub:

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

Gitee ( 国内镜像 )

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

zsh-autosuggestions

代码补全的插件

brew install zsh-autosuggestions
echo "source /opt/homebrew/Cellar/zsh-autosuggestions/0.7.0/share/zsh-autosuggestions/zsh-autosuggestions.zsh" >>~/.zshrc

zsh-syntax-highlighting

高亮你的代码命令的插件

brew install zsh-syntax-highlighting
echo "source /opt/homebrew/Cellar/zsh-syntax-highlighting/0.7.1/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >>~/.zshrc

设置固定主题

  • 安装完毕后,Oh My Zsh 提供了很多主题风格,我们可以根据自己的喜好,设置主题风格
open ~/.zshrc

# 找到 ZSH_THEME
# robbyrussell 是默认的主题
ZSH_THEME="robbyrussell"

# ZSH_THEME="样式名称" 
  • 保存这个文件文件,重新打开终端。

Java 环境

	奇怪的是用 brew install java11 有问题
	最后去官网直接下载了,直接安装了

暂时到这里,后面配环境再补充

猜你喜欢

转载自blog.csdn.net/god_zzZ/article/details/128503625