Mac之安装zsh
1.安装homebrew
如果出现:fatal: Could not resolve HEAD to a revision,说明git没有设置好,通过brew --version查看是不是没有设置好git,可以执行以下命令修复:
git -C $(brew --repository homebrew/core) checkout master
建议使用中科院的源
2.安装wget
brew install wget
3.安装zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
4.修改主题
vim ~/.zshrc
改成ZSH_THEME="avit"
5.重启终端
黄世宇/Shiyu Huang's Personal Page:https://huangshiyu13.github.io/