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中
  • 设置git@ssh,使用代理访问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]验证设置是否正确以及代理是否正常工作。
  • 设置git@http和git@https的代理,执行一下命令。
git config --global http.proxy "socks5://127.0.0.1:6153"
git config --global https.proxy "socks5://127.0.0.1:6153"
  • 安装Homebrew。安装命令 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • 安装Oh My Zsh。安装命令 sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
  • 安装zplug。安装命令 curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh
  • 安装dein.vim给nvim。安装命令curl https://raw.githubusercontent.com/Shougo/dein.vim/master/bin/installer.sh > installer.sh; sh ./installer.sh /.local/share/dein
  • 安装autojump。安装命令brew install autojump,再将[ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh || echo "Failed to load the >> autojump <<"添加到.zshrc
  • 安装fzf。安装命令brew install fzf; $(brew --prefix)/opt/fzf/install

你可能感兴趣的:(macOS上更顺手的终端)