MAC 安装oh my zsh

mac 本身就自带了zsh

如果不放心可以查看下是否安装

cat /etc/shells


如果没有  brew install zsh

更新zsh    

*设置zsh为自己使用        chsh-s/bin/zsh

确保有zsh的情况下 安装oh my zsh

官方提供下载地址:

sh-c"$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

解决方案:

使用国内地址:

        sh -c "$(curl -fsSL https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh)"


不容易

在这里要说一句,如果在安装的过程中报错

Cloning into '/Users/dan/.oh-my-zsh'...

ssh_dispatch_run_fatal: Connection to 13.229.188.59 port 22: Operation timed out

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.

Error: git clone of oh-my-zsh repo failed


注意去gitee.com 添加密钥

完成图

你可能感兴趣的:(MAC 安装oh my zsh)