Quick Setup of Oh My ZSH! terminal on Ubuntu

lauragift21 profile image Gift Egwuenu ・2 min read

Tired of the good ol' boring looking terminal? Do you want to try something different and funky then you should definitely try Oh-my-zsh! As developers, we can't deny the fact that the Command line terminal is part of our existence.


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 will make you shout.


* Disclaimer: Oh My Zsh works best on macOS and Linux.

  • Unix-like operating system (macOS or Linux)

  • Zsh should be installed (v4.3.9 or more recent). sudo apt-get install zsh If not pre-installed (zsh --version to confirm), curl or wget should be installed

  • git should be installed


Via wget

$ sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

Via curl

$ sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Now we have zsh and oh-my-zsh installed next step is to go ahead with configuration.


Oh-My-Zsh comes bundled with several themes located in ~/.zshrc/themes which can be enabled by adding the name of the theme in the ~/.zshrc file.

# nano ~/.zshrc
# This can be changed to whatever theme is preferred



Oh-my-zsh also includes a handful of plugins available to help make development faster and easier. One of my best is the fact that auto-completion works out of the box. You would not need to type a whole command just hitting tab helps by suggesting possible command related to your needs.

Another awesome thing to try is the zsh-syntax-highlighting This package provides syntax highlighting for the shell zsh. It enables highlighting of commands whilst they are typed at a zsh prompt into an interactive terminal. This helps in reviewing commands before running them, particularly in catching syntax errors.

Tip 💡

You can easily switch between bash and zsh by running this command

# switching from zsh to bash
exec bash
# switching from bash to zsh
exec zsh

There you go, I hope after reading this you switch from whatever shell you were using to zsh and also try out oh-my-zsh they are both awesome.🚀

Feel free to share your comments and thoughts.

Originally posted at giftegwuenu.com

Posted on Apr 27 '18 by:

lauragift21 profile

Gift Egwuenu


Frontend engineer based in Lagos Nigeria. I'm passionate about making the web accessible to everyone and also an advocate for building open-source software and developer communities.


markdown guide

If you're using agnoster as a theme then you should install one of the patched fonts from Vim-Powerline for special characters.

Also, if you don't want to see your username at the begining of the prompt (as I would recommend) then you'll have to add this to your ~/.zshrc file


This will hide the user@hostname info


Thanks for the tip this is helpful.


Take a loot to Prezto, oh-my-zsh is slower because it uses zsh wrapper instead of native code.
(Maybe things have changed since the time I switched for prezto)


Hey I have a question as of now I had change the theme on zshrc file but however the theme on my command line is still the same. But Looking at my terminal in VS CODE it did however Change.

I was wondering to change the default theme?


I feel like I never properly utilize oh-my-zsh.

It's prettier than Terminal! But I never remember to use the autocompletes, including the add-on stuff like git and docker that I enabled. I just use it as a reskinnedTerminal.


Cool, another zsh user! I recently posted about article as well on it: bling-ified terminal


I use omz with powerlevel9k in my Tilix Terminal and together they are awesome.