安装 zsh

sudo apt-get install zsh

将 zsh 设置为默认 shell

chsh -s $(which zsh)

安装 oh-my-zsh

sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

配置 zsh plugins, 编辑文件 ~/.zshrc

plugins=(rails git ruby)

agnoster 主题乱码

sudo apt-get install fonts-powerline

设置 powerline 字体即可