What is zsh
Zsh, like bash, is a Unix shell, but most Linux distributions use the Bash shell by default. But Zsh has powerful auto-completion parameters, filenames, and other features and powerful custom configuration features.
First, install the ZSH
You need to install zsh before installing OH-MY-ZSH.
Yum Install-y zsh
Second, installation oh-my-zsh
1. Automatic installation with Curl
Curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
2. Manual Installation
1. Using the GIT clone project
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
2. Back up the ~/.ZSHRC file
CP ~/.ZSHRC ~/. ZSHRC. Orig
3. Create a new zsh configuration file
CP ~/.oh-my-zsh/templates/zshrc. zsh-template ~/.zshrc
4. Set Zsh as the default shell
Chsh- s /bin/zsh
5. Restart terminal or create a new terminal to see the effect.
After successful installation
3. Better Themes
Modify the. zshrc file under the user's root directory .
Configuration file found in:
Zsh_theme= "Robbyrussell"
Robbyrussell as the default theme
There are many topics to choose from under this link: https://github.com/robbyrussell/oh-my-zsh/wiki/themes
Oh-my-zsh Themes