手动安装 oh-my-zsh 并切换主题为 pure
手动安装 oh-my-zsh 并切换主题为 pure
在线安装 oh-my-zsh 时由于GitHub登陆失败(443)而无法安装,故手动安装之。
🔶查询当前shell
#查看系统当前使用的shell
echo $SHELL
#查看系统是否安装了zsh
cat /etc/shells
🔶安装zsh
yum -y install zsh
🔶切换zsh
chsh -s /bin/zsh
#重新登录
echo $SHELL
💥手动安装oh-my-zsh
git clone https://gitee.com/URmyLucky/ohmyzsh2020.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
source ~/.zshrc
🔶修改主题
vim ~/.zshrc
#ZSH_THEME="ys"
source ~/.zshrc
🔷切换主题为pure
pure 是一款小巧、简洁、快速且美观的 ZSH prompt:
git clone https://gitee.com/URmyLucky/pure2020.git ~/.oh-my-zsh/custom/pure
ln -s ~/.oh-my-zsh/custom/pure/async.zsh ~/.oh-my-zsh/custom/async.zsh
vim ~/.zshrc
#将ZSH_THEME修改如下:
ZSH_THEME=refined
source ~/.zshrc
享受之。