MAC 上比较强大的终端软件 Oh My Zsh,官网:https://ohmyz.sh。
1、官网提供的安装方法
# curl 安装方式
$ sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# wget 安装方式
$ sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
执行报错,发现是安装的网址被屏蔽了,无法访问。
2、安装问题解决
打开网址 https://github.com/ohmyzsh/ohmyzsh/,下载zip 文件,解压后,运行 ohmyzsh-master/tools目录下的 install.sh。
又提示错误,需要安装 Xcode。安装 Xcode 后,再次运行 install.sh,安装成功。