安装oh my zsh

官网 https://ohmyz.sh/

Install oh-my-zsh

shell
1sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Mac 安装 FiraCode 字体并修改 Iterm 字体

  • 从 github 下载 git clone https://github.com/tonsky/FiraCode.git
  • 进入 /distr/ttf 目录全选字体 右键 open with font book
  • 可以顺便修改 Iterm 的字体为 FiraCode

换一个好看的 Iterm 配色

下载 Solarized Dark Patched 保存为itermcolors后缀

换一个好看的 oh-my-zsh 主题

vim ~/.zshrc 修改 ZSH_THEME 为 ZSH_THEME="agnoster"

Install useful plugins

click plugins to see.
vim ~/.zshrc 修改 plugins 为 plugins=(git zsh-autosuggestions zsh-syntax-highlighting sudo)

安装 zsh-syntax-highlighting

shell
1git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
2
3echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc
4
5git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

安装 zsh-autosuggestions

shell
1git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions