1、首先确定安装了zsh(等同于bash等)
https://github.com/robbyrussell/oh-my-zsh/wiki/Installing-ZSH
2、安装oh-my-zsh 它会在你的根目录下创建一个.oh-my-zsh的文件夹,里面包含了theme plugins等文件夹,之后安装的各种拓展就放在这些文件夹下。
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
3、plugin里包括了很多插件 要用哪个直接在vim ~/.zshrc的plugin里加入就好 中间用空格隔开。非常非常好用的:
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
记得clone完之后要修改zshrc
4、要使用不同主题也是同样在vim ~/.zshrc里修改。