1.先查看系统有没有zsh

cat /etc/shells

/bin/sh
/bin/bash
/sbin/nologin
/bin/dash
/bin/tcsh
/bin/csh
/bin/zsh

好的,有。

2.切换shell到zsh

sudo chsh -s /bin/zsh

Changing shell for root.
Shell changed.

OK.

3.安装oh my zsh

执行
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

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

4.配置一番

vim ~/.zshrc
shift+g到最后一行,添加alias ll='ls -alF'

5.安装zsh-autosuggestions插件

git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
添加到vim配置文件
vim ~/.zshrc
找到plugins=(git),添加zsh-autosuggestions,成为plugins=(git zsh-autosuggestions)

5.生效

source ~/.zshrc