鼠标滚轮方向翻转

安装软件 SCROLL REVERSER
http://pilotmoon.com/scrollreverser/

外接显示器开启high dpi

安装软件 SwitchResX
https://www.madrau.com/
参考:https://www.zhihu.com/question/35300978

安装 Xcode command line tools

xcode-select --install

命令行终端 Terminal

切换默认 Shell 到 Zsh

chsh -s /bin/zsh

安装 Oh My 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

终端下的命令管理 — Homebrew

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

替换及重置Homebrew默认源

# 替换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 Bottles源

# 对于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

brew update

解决brew安装包一直卡在Updating Homebrew

方法一:关闭brew每次执行命令时的自动更新(推荐)

echo 'export HOMEBREW_NO_AUTO_UPDATE=true' >> ~/.zshrc
source ~/.zshrc

Homebrew 来安装 wget

brew install wget

终端下管理非终端软件 — Homebrew Cask

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

安装PostgreSQL, redis

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
0条评论 顺序楼层
请先登录再回复