Adam. R

How to Install OH-MY-ZSH in Ubuntu!

Created September 16, 2021

What is OH-MH-ZSH

OH-MY-ZSH is an open-source framework for managing ZSH configuration and is community-driven. It comes bundled with tons of helpful functions, plugins, helpers, themes, and a few things that will make you better at the terminal. There are currently 275+ plugins and 150 themes supported.


Requirements


Installation

You must first install ZSH to begin so lets get started!

We will use the apt package manager to install ZSH on Ubuntu.

sudo apt install zsh

The package manager will install the latest release of ZSH which is 5.8.

zsh --version

Output

zsh 5.8 (x86_64-ubuntu-linux-gnu)

Now we can install Oh-My-SH


Installing Oh-My-SH

Now lets install Oh-My-SH via the command-line with either curl or wget as shown.

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

Or

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

Press y and type in your root password. Once you do that the terminal will look different as in the image shown below. oh my sh home.png


Oh-My-SH Themes.

Among all features in OH-MY-ZSH, I love the set of themes that comes in a bundle with the installation. It visually improves my terminal look and feel. Themes are installed under “/home/tecmint/.oh-my-zsh/themes/“.

ls /home/tecmint/.oh-my-zsh/themes/

oh my sh themes.png By default “robbyrussell” is the theme that gets loaded. To change the theme modify the parameter “ZSH_THEME=<THEME-NAME>” under the .zshrc file.

nano ~/.zshrc

.zsh.png You have to source (source ~/.zshrc) the file for changes to be effective.

source ~/.zshrc

That’s it, you have successfully installed Oh-My-SH on your Ubuntu Server and you can start using it!

If you found this usful then please comment and follow me! Also check out my website where I also post everything from here