终端执行

curl -Lo install.sh https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh
sh install.sh

切换当前默认shell

chsh -s /bin/zsh

重新打开终端即可生效


zsh的配置文件在~/.zshrc