oh-my-zsh Github:
安装步骤:
- 安装 zsh
yum install zsh
# 将 Zsh 设置为默认 Shell
chsh -s /bin/zsh
2. 安装 oh-my-zsh
via curl
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
via wget
sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
执行过程遇到443问题。
HQITI0010:.ssh shiyang.long$ 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/shmhlsy/oh-my-zsh-install.sh/raw/master/install.sh)"
3. 修改主题(推荐主题 avit)
配置文件位置: ~/.zshrc 修改参数: ZSH_THEME = "ys"; 重新打开shell后,设置生效。