🚟

Mac 环境配置

date
slug
status
tags
summary
type
Property
Sep 27, 2022 07:41 AM

开发环境设置

允许任何来源应用

sudo spctl --master-disable

Command line tools

xcode-select --install

brew

/usr/bin/ruby -e "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install)"
 
brew 换源
# 替换 brew.git git -C "$(brew --repo)" remote set-url origin https://mirrors.ustc.edu.cn/brew.git # 替换 homebrew-core.git git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git # 替换 homebrew-cask.git git -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git # 替换 homebrew-bottles -> bash echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bash_profile source ~/.bash_profile # 替换 homebrew-bottles -> zsh echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.zshrc source ~/.zshrc
brew 常用工具
brew install htop brew install tree brew install vim brew install mackup brew install switchkey brew install visual-studio-code brew install karabiner-elements

gem

gem sources --add https://mirrors.tuna.tsinghua.edu.cn/rubygems/ --remove https://rubygems.org/ gem sources -l