1、直接上码云,以便于我们能正常下载镜像,先安装brew
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
一路Y一定没问题
2、安装zsh
brew install zsh
3、将shell切换为zsh
echo $SHELL
4、查看安装的shell
cat/etc/shells
5、 安装oh-my-zsh
sh-c"$(curl-fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
6、安装语法高亮和自动补全插件
cd"$ZSH_CUSTOM/plugins"pwd/Users/jinjunfan/.oh-my-zsh/custom/plugins
网友评论