- 安装iTerm2。下载地址 https://iterm2.com/downloads/stable/latest
- 安装Nerd Fonts。下载地址 https://github.com/ryanoasis/nerd-fonts/releases/download/v2.0.0/Hack.zip
- 生成SSH key。命令
ssh-keygen
- 上传公钥到Github账户。将
cat ~/.ssh/id_rsa.pub
的结果上传至Github账户的SSH keys中
- 使用代理访问Github。编辑
~/.ssh/config
添加下面的内容
Host github.com
User git
Hostname github.com
Port 22
Proxycommand nc -X 5 -x 127.0.0.1:6153 %h %p
- 使用
ssh [email protected]
验证设置是否正确以及代理是否正常工作。
- 安装Homebrew。安装命令
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"