Install Oh My Zsh

Zsh is a shell that together with Oh My Zsh, a framework developed by the community, gives us suggestions when we are in our terminal, as well as in case of using git, to know in which branch we are.

I will install a well-known theme, agnoster.

Through this Post, we will learn to install it, in a very simple way.

Installing ZSH and git-core

Installing from Debian or Ubuntu repositories.

sudo apt install zsh git-core

Downloading Oh My ZSH and run it

The time has come to install Oh My Zsh

wget -O - | zsh

Uninstall Oh My ZSH

If you didn’t like oh my zsh, uninstalling it is as simple as running on the terminal:


Change shell to ZSH

Let’s change our current Shell to zsh:

chsh -s `which zsh`

Now, for the effect to take effect, it will be necessary to restart the terminal. If it does not work, it may be necessary to restart the Operating System.

If Zsh or another shell does not convince us, we will return to bash like this:

chsh -s `which bash`

That Shells are available in our system

To know the shells we have installed in our system:

cat /etc/shells

Know our current shell

echo $SHELL

If we have zsh, it will return us:


Installing Powerline Fonts for ZSH

If the symbols do not appear correctly on your terminal, it is necessary to install:

sudo apt install fonts-powerline


I’m going to change the robbyrussell theme and install the agnoster theme:

nano ~/.zshrc

It replaces:

# ZSH_THEME="robbyrussell" ZSH_THEME="agnoster"

Search history

In the root of the $HOME directory, we will create the hidden .inputrc file. We will use for example nano, to create the file.

nano .inputrc

Once opened, we will copy in the following content:

## Up key "\e[A":history-search-backward ## Down key "\e[B":history-search-forward


Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top