Z shell is a Unix shell that can be used as an interactive login shell and as a command interpreter for shell scripting. Zsh having l...
Z shell is a Unix shell that can be used as an interactive login shell and as a command interpreter for shell scripting.
Zsh having lot of improvements over Bourne shell and first created by Paul Falstad in 1990.
Zsh Features
- Sharing command history among all running shells.
- Spelling correction
- Loadable Modules
- Named directories
Installation Steps
In order for Oh-My-Zsh to work on the system ,zsh need to be installedStep 1: Install ZSH
Two ways we can install ZSH
- Source package
- Package Manager.
apt install zshFor CentOS7
sudo yum update && sudo yum -y install zshFor OpenSUSE
zypper install zshFor Fedora
dnf install zshStep 2: Make it as Default Shell
chsh -s (which zsh) rootStep 3: Verify the shell
Logout from the root user and login again to verify the shell
echo $SHELLStep 4: Install and Configure Oh-My-Zsh Framework
Once Z Shell is installed and confirmed install the Framework from the GIT
For Ubuntu
apt install wget gitOn CentOS
yum install wget git
Install Oh-My-Zsh Framework
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zshOh-My-Zsh will be installed in the home directory "~/.oh-my-zsh".Copy the zshrc.zsh-template config file to the home directory .zshrc and apply the config
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
source ~/.zshrcStep 5: Change Oh-My-Zsh Themes
Oh-My-Zsh framework provides large no.of themes , You can change the default themes by editing the config file .zshrc which will be under ./oh-my-zsh/themes/
Set ZSH_THEME to the name of the theme in your ~/.zshrc, before sourcing Oh My Zsh
ZSH_THEME=af-magic
If you do not want any theme enabled, just set ZSH_THEME to blank: ZSH_THEME=""
COMMENTS