参考网页来自于:
https://www.jianshu.com/p/4e601cc266d2
https://github.com/Shunli-Wang/OSSetup/blob/master/setup_zsh.sh#L14
1、安装zsh
cat /etc/shells # 查看有哪些shell
sudo apt-get install -y zsh # 安装zsh
2、修改默认为zsh
sudo chsh -s $(which zsh)
3、安装oh-my-zsh
wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O - | sh
4、下载补全和高亮插件
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
5、编辑配置文件.zshrc
添加plugins:plugins=(git z zsh-autosuggestions zsh-syntax-highlighting)
修改主题:ZSH_THEME="ys"
6、.zshrc中添加conda路径
export PATH="/home/XXXX/anaconda3/bin:$PATH"