How To Install & Setup Oh-My-Zsh on Linux

Share it:
How To Setup ZSH and Oh-my-zsh on Linux

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 installed

Step 1: Install ZSH

Two ways we can install ZSH
  1. Source package
  2. Package Manager.
For Ubuntu
apt install zsh
For CentOS7
sudo yum update && sudo yum -y install zsh
For OpenSUSE
zypper install zsh
For Fedora
dnf install zsh
Step 2: Make it as Default Shell
chsh -s (which zsh) root
Step 3: Verify the shell

Logout from the root user and login again to verify the shell
echo $SHELL
Step 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 git
On CentOS
yum install wget git
Install Oh-My-Zsh Framework
wget -O - | zsh
Oh-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 ~/.zshrc
Step 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

If you do not want any theme enabled, just set ZSH_THEME to blank: ZSH_THEME=""
Share it:

Post A Comment: