终端美化(ZSH)
查看已经安装的shell
cat /etc/shells安装zsh
brew install zsh设置默认shell
chsh -s /bin/zshgit clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc配置zsh
vi ~/.zshrc修改主题
ZSH_THEME="ys"配置插件
cd .oh-my-zsh/pluginszsh-syntax-highlighting语法高亮插件
git clone https://github.com/zsh-users/zsh-syntax-highlighting.gitzsh-autosuggestions记录输入命令插件
git clone https://github.com/zsh-users/zsh-autosuggestions.git在.zshrc中修改配置
plugins=(其他插件 zsh-syntax-highlighting zsh-autosuggestions) # 注意空格隔开source ~/.zshrc报错
Error: Oh My Zsh can't be loaded from: bash. You need to run zsh instead # 退出终端重进