Mac新机配置(基于macOS Big Sur版本11.2.1)
目录
Mac新机配置(基于macOS Big Sur版本11.2.1)
系统设置
Homebrew
使用homebrew统一管理安装应用
安装
#使用中科大国内加速地址
/usr/bin/ruby -e "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install)"
#安装Cask拓展 过程有点慢
#brew tap homebrew/cask
#建议使用以下方法 国内加速
cd "$(brew --repo)/Library/Taps/homebrew"
git clone https://mirrors.ustc.edu.cn/homebrew-cask.git /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask --origin=origin
修改国内加速镜像源地址
#替换brew.git:
cd "$(brew --repo)"
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
#替换homebrew-core.git:
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
# 替换homebrew-cask.git:
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-cask"
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git
重置为官方镜像
#重置brew.git:
cd "$(brew --repo)"
git remote set-url origin https://github.com/Homebrew/brew.git
#重置homebrew-core.git:
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://github.com/Homebrew/homebrew-core.git
#更新源
brew update
Cask应用安装
谷歌浏览器
brew install --cask google-chrome
Iterm2 + oh-my-zsh
安装Iterm2
brew install --cask iterm2
#打开iterm2切换zsh
#The default interactive shell is now zsh.
#To update your account to use zsh, please run `chsh -s /bin/zsh`.
chsh -s /bin/zsh
zsh
安装oh-my-zsh
#下载安装脚本 国内加速
wget https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh
#然后给install.sh添加权限
chmod +x install.sh
./install.sh
浙公网安备 33010602011771号