mac更新后终端变成了iTerm2,【切换命令:chsh -s /bin/zsh 】也就是zsh,需要下载一个oh-my-zsh美化
githua原地址:https://github.com/ohmyzsh/ohmyzsh
via curl
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
via wget
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
但是安装失败,可以先用git下载:
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
再替换zshrc
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
重启终端就好了。