折腾了一下自己的linux的shell,更换为oh-my-zsh,并更换主题,安装提示插件。

最终效果

new UI
new UI

1 安装

1
2
3
4
5
6
7
yum install git
yum install zsh

#方案一:
sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh --no-check-certificate -O -)"
#方案二:(官方方案)
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

2 更换主题

1
2
3
4
cd ~/.oh-my-zsh/themes && ls
vim ~/.zshrc
#ZSH_THEME="agnoster"
source ~/.zshrc

3 安装插件(zsh-autosuggestions)

1
2
3
4
5
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
vim ~/.zshrc
#将zsh-autosuggestions添加到plugins中
#plugins=(git zsh-autosuggestions)
source ~/.zshrc