Linux machine has many shells, bash is default one. But Zsh shell is quit famous in many Linux advanced users and programmers due to its features and various plugins provided on internet.Today we will try to know how we could install zsh.

Installing zsh shell is quit simple. We can install it through simple command provide through ohmyzsh.com on their homepage.

Some of useful features on oh-my-zsh.

  • It has various common alias which were used widely through Linux users.
  • Various levels of auto-complete provided through it.
  • You need not to open command man pages, it provide commands on press of single tab.
  • It has widely active and accepted community on various websites, which make easy get support on same.
  • Command prompt will tell you last command status.
  • Globbing support

This is not all,once you get in this you will get know how useful it is and how fast and easy it make to work on linux machine.

Below mentioned is method through which we can install oh-my-zsh shell and its predefined settings and themes. I must suggest please try it once, it will helpful for you

Install oh-my-zsh

sh -c “$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)”

ssirohi@srv2:~$ sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Cloning Oh My Zsh...
Cloning into '/home/ssirohi/.oh-my-zsh'...
remote: Enumerating objects: 1152, done.
remote: Counting objects: 100% (1152/1152), done.
remote: Compressing objects: 100% (1117/1117), done.
remote: Total 1152 (delta 19), reused 1097 (delta 19), pack-reused 0
Receiving objects: 100% (1152/1152), 772.53 KiB | 1.59 MiB/s, done.
Resolving deltas: 100% (19/19), done.

Looking for an existing zsh config...
Using the Oh My Zsh template file and adding it to ~/.zshrc.

Time to change your default shell to zsh:
Do you want to change your default shell to zsh? [Y/n] y
Changing the shell...
Password: 
Shell successfully changed to '/bin/zsh'.

         __                                     __
  ____  / /_     ____ ___  __  __   ____  _____/ /_
 / __ \/ __ \   / __ `__ \/ / / /  /_  / / ___/ __ \
/ /_/ / / / /  / / / / / / /_/ /    / /_(__  ) / / /
\____/_/ /_/  /_/ /_/ /_/\__, /    /___/____/_/ /_/
                        /____/                       ....is now installed!


Please look over the ~/.zshrc file to select plugins, themes, and options.

p.s. Follow us on https://twitter.com/ohmyzsh

p.p.s. Get stickers, shirts, and coffee mugs at https://shop.planetargon.com/collections/oh-my-zsh

One of famous font theme used in agnoster, we can change theme from ~/.zshrc file

# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
#ZSH_THEME="robbyrussell"
ZSH_THEME="agnoster"

Agnoster Theme

On some Os, These support fonts are available, like in Ubuntu18.04 agnoster support font is not available, which is Menlo-for-Powerline. we can download required fonts and deploy it in font directories.

Fonts required for Agnoster Theme in Ubuntu.

apt-get install powerline fonts-powerline

Download fonts from Git

git clone https://github.com/abertsch/Menlo-for-Powerline.git

Copy it from git downloaded directory to system font.

sudo cp -rvf Menlo-for-Powerline /usr/share/fonts/truetype/

Then we should change our terminal Font type to Menolo for Pwerline regular