Beautify linux client zsh and oh-my-zsh

 

 

First, install zsh

Install zsh
yum -y install zsh

Replace the default shell
chsh -s /bin/zsh

View the current shell
echo $SHELL

Two, mounted oh-my-zsh

Install git
yum -y install git

Cloning oh-my-zsh
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh

Copy zshrc
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

To disconnect and reconnect to see results:

➜  / ls

View topic
cd ~/.oh-my-zsh/themes && ls

Modify Subject
vim ~/.zshrc

# ZSH_THEME="robbyrussell"
ZSH_THEME="powerlevel9k/powerlevel9k"

Download powerlevel9k theme
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k

reference:

Guess you like

Origin www.cnblogs.com/linyufeng/p/12084401.html
Recommended