安装软件 SCROLL REVERSER
http://pilotmoon.com/scrollreverser/
安装软件 SwitchResX
https://www.madrau.com/
参考:https://www.zhihu.com/question/35300978
xcode-select --install
chsh -s /bin/zsh
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
oh-my-zsh插件配置 https://www.vicw.com/groups/code_monkey/topics/353
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# 替换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
# 对于zsh用户
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.zshrc
source ~/.zshrc
# 对于bash用户:
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bash_profile
source ~/.bash_profile
brew update
方法一:关闭brew每次执行命令时的自动更新(推荐)
echo 'export HOMEBREW_NO_AUTO_UPDATE=true' >> ~/.zshrc
source ~/.zshrc
brew install wget
brew install cask
替换homebrew cask源
cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-cask
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git
如何使用 Homebrew Cask 来安装 Google Chrome
# 搜索chrome软件
brew cask search chrome
# 安装chrome
brew cask install google-chrome
# 安装iterm2
brew cask install iterm2
brew install postgresql
# 设置postgresql开机自启
brew services start postgresql
# 数据配置文件在 /usr/local/var/postgres/postgresql.conf
brew install redis
# 设置redis开机自启
brew services start redis
brew install rabbitmq
# 设置rabbitmq开机自启
brew services start rabbitmq
brew install mysql
# 设置mysql开机自启
brew services start mysql