手動安裝 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
享受之。