安装zsh ohmyzsh 和相关插件 - xd21303/Notebook GitHub Wiki

https://ohmyz.sh/#install

sudo apt install zsh
sudo apt install git
sudo apt install curl
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

安装插件

https://github.com/zsh-users/zsh-autosuggestions

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

在~/.zshrc文件中,修改

ZSH_THEME="random"
plugins=(git zsh-autosuggestions zsh-syntax-highlighting z conda conda-env)

如果需要将conda信息显示出来

ZSH_THEME_CONDA_PREFIX='conda:%F{green}'
ZSH_THEME_CONDA_SUFFIX='%f'
RPROMPT='$(conda_prompt_info)'