Install zsh
yum -y install zsh
# 查看是否安装完成
cat /etc/shells
/bin/sh
/bin/bash
/sbin/nologin
/bin/dash
/bin/tcsh
/bin/csh
/bin/zsh
# 替换默认的 /bin/bash
chsh -s /bin/zsh
Changing shell for root.
Shell not changed.
# 重启一下
reboot
# 查看现在的shell
echo $SHELL
/bin/zsh
Installation oh-my-zsh
Installation Manual
# 安装git
yum -y install git
#克隆oh-my-zsh
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
#复制zshrc
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
Automatic installation
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
Whether using manual 或者
automatic installation, after the completion of all required restart. oh-my-zsh to take effect.
Modify Subject
Pick your favorite theme: https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
vim ~/.zshrc
ZSH_THEME=bira