安装 zsh
| 12
 3
 4
 5
 6
 7
 
 | brew install zsh
 zsh --version
 
 
 chsh -s $(which zsh)
 
 
 | 
安装 Oh My Zsh
| 12
 3
 4
 5
 
 | brew install git
 
 sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
 
 
 | 
安装 angtigen
A plugin manager for zsh, inspired by oh-my-zsh and vundle.
| 12
 
 | curl -L git.io/antigen > antigen.zsh
 
 | 
安装完成后,删除原来的 .zshrc 文件,新建一个
| 12
 
 | rm ~/.zshrctouch ~/.zshrc
 
 | 
将下列内容复制后粘贴到新的 .zshrc 中并保存
| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 
 | source ~/antigen.zsh
 
 antigen use oh-my-zsh
 
 
 antigen bundle brew
 antigen bundle command-not-found
 antigen bundle docker
 antigen bundle docker-compose
 antigen bundle gem
 antigen bundle git
 antigen bundle golang
 antigen bundle ng
 antigen bundle osx
 antigen bundle pip
 
 
 antigen bundle zsh-users/zsh-syntax-highlighting
 antigen bundle zsh-users/zsh-completions
 antigen bundle zsh-users/zsh-autosuggestions
 antigen bundle zsh-users/zsh-apple-touchbar
 
 
 
 antigen theme https://github.com/denysdovhan/spaceship-prompt spaceship
 
 
 antigen apply
 
 | 
保存后,执行下该文件
为 spaceship 主题安装字体 Powerline fonts
| 12
 3
 4
 5
 6
 7
 8
 
 | git clone https://github.com/powerline/fonts.git --depth=1
 
 cd fonts
 ./install.sh
 
 cd ..
 rm -rf fonts
 
 | 
安装完成打开终端的 偏好设置 -> 描述文件 -> 字体,并选择 Meslo LG 系列字体中的一个,这个时候终端里面的乱码问题就解决了。

这样就大功告成了😎
