1 oh-my-zsh依赖于zsh,需要先安装zsh
sudo apt-get install zsh
切换shell
chsh -s /bin/zsh
默认shell
chsh -s /bin/bash
reboot
查看当前shell
echo $SHEEL
每次手动进入 zsh
退出 exit
2 安装 oh my zsh
git clone https://gitee.com/whereabouts-fork/ohmyzsh.git ~/.oh-my-zsh
3 添加插件
vi ~/.zshrc
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
source ~/.zshrc
自动补全
git clone https://gitee.com/whereabouts-fork/zsh-autosuggestions.git ~/.oh-my-zsh//plugins/zsh-autosuggestions
颜色高亮
git clone https://gitee.com/whereabouts-fork/zsh-syntax-highlighting.git ~/.oh-my-zsh//plugins/zsh-syntax-highlighting