ZSH is one of the most powerful interactive UNIX shell Zsh was developed by ‘Paul Fastad’ since 1990, and the name ‘zsh’ comes from the Yale professor Zong Shao. Zsh is an extended Bourne shell with many improvements, including some features of Bash, ksh, and tcsh. Many of the useful features of Zsh were incorporated into Bash as well. Zsh is upward compatible with Bash scripts.

Installing ZSH

To install ZSH on Linux, you can use the following command:

sudo apt install zsh

Mac OSX uses ZSH by default. If you are on Mac, then you can skip this step.

What is Oh-my-zsh?

Oh-my-zsh is an open-source, community-driven framework for managing your ZSH configuration. It comes bundled with a ton of helpful functions, helpers, plugins, themes, and a few things that make you shout… “Oh My ZSH!”.

Installing Oh-my-zsh

To install Oh-my-zsh, you can use the following command:

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

Changing Default Shell to ZSH

To change the default shell to ZSH, you can use the following command:

chsh -s $(which zsh)

Setting up ZSH Theme

To set up ZSH theme, you can use the following command:

nano ~/.zshrc

# Change the ZSH_THEME to "agnoster"

ZSH_THEME="agnoster"

Setting up ZSH Plugins

To set up ZSH plugins, you can use the following command:

nano ~/.zshrc

# Add the following plugins to the plugins array

plugins=(git zsh-autosuggestions zsh-syntax-highlighting)