安装zsh
安装ohmyzsh
安装zsh-autosuggestions,zsh-syntax-highlighting。
编辑.zshrc,启用plugins。
解决git目录下卡顿问题:git config --global --add oh-my-zsh.hide-dirty 1
bash
# https://gitcode.com/gh_mirrors/oh/ohmyzsh/overview
sh -c "$(curl -fsSL https://install.ohmyz.sh/)"
git clone https://gitcode.com/gh_mirrors/zs/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
git clone https://gitcode.com/gh_mirrors/zs/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
# edit ~/.zshrc
# source ~/.zshrc