zsh初始化配置

安装oh-my-zsh

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

如果有关于github的网络问题,可以设置一下github的host

https://hosts.gitcdn.top/

安装第三方插件

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

plugins=(git extract z zsh-autosuggestions zsh-syntax-highlighting)

source ~/.zshrc