在macOS上打造更好用的终端

  • 安装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)"

猜你喜欢

转载自www.cnblogs.com/zhuxiaoxi/p/11639840.html