Environment Setup1 min read
Mac Environment Setup (M1 Chip)
Notes on configuring a MacBook Pro with an M1 Pro chip running macOS Ventura 13.1, including Homebrew, Command Line Tools, Oh My Zsh, plugins, themes, and the Java environment.
Read in Chinese→0x00 I Recently Got a New Computer
I need to configure everything again, so I’m documenting the process here for future reference.
Device: MBP (M1 PRO)
System: macOS Ventura 13.1
0x01 Software Download Links
Install Brew (Very useful and automatically switches mirrors)
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
Install Command Line Tools
安装
安装Command Line Tools
xcode-select --install
Install & Configure Oh My Zsh
GitHub:
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Gitee (Domestic Mirror)
sh -c "$(curl -fsSL https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh)"
zsh-autosuggestions
A plugin for code completion
brew install zsh-autosuggestions
echo "source /opt/homebrew/Cellar/zsh-autosuggestions/0.7.0/share/zsh-autosuggestions/zsh-autosuggestions.zsh" >>~/.zshrc
zsh-syntax-highlighting
A plugin that highlights your code commands
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
Set a Fixed Theme
- After installation, Oh My Zsh provides many theme styles. You can choose and set one according to your preferences.
open ~/.zshrc
# 找到 ZSH_THEME
# robbyrussell 是默认的主题
ZSH_THEME="robbyrussell"
# ZSH_THEME="样式名称"
- Save this file and reopen the terminal.
Java Environment
奇怪的是用 brew install java11 有问题
最后去官网直接下载了,直接安装了
That’s all for now. I’ll add more later as I continue configuring the environment.