How To Install Zsh On Centos
By default, Centos comes with Bash shell enabled. Zsh is same as Bash but more powerful once you install the frame work https://github.com/ohmyzsh/ohmyzsh
Install Zsh On Centos 7 (and below)
sudo yum install zsh -y
chsh -s /bin/zsh root
Install Zsh On Centos 8 and Rocky Linux
sudo dnf install zsh -y
sudo dnf install util-linux-user -y
chsh -s /bin/zsh root
Install Oh My Zsh
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
How To Fix -bash: chsh: command not found
Make sure you install following...
sudo dnf install util-linux-user -y
Switch Back From Zsh to Bash
chsh -s $(which bash)