官方推荐的三种安装方法如下:
Method | Command |
---|---|
curl | sh -c “$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)” |
wget | sh -c “$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)” |
fetch | sh -c “$(fetch -o - https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)” |
连接失败
或者直接获取源码运行总是clone不下来:
查看shell脚本 install.sh
,发现在原有脚本中,远程通过https连接,将原有脚本中remote地址更改之后即可
如下:
REMOTE=${REMOTE:-git@github.com:${REPO}.git}
另外,powerlevel10k是一个部署非常讲究的库,里面给出的oh-my-zsh安装方法亲测可用:
https://github.com/romkatv/powerlevel10k#manual