How to install ZSH and OH My ZSH on Ubuntu 18.04 - Chamrong Tutorials

 

How-to-uninstall-ZSH-and-OH-MY-ZSH-on-Ubuntu-18.04-Chamrong-Tutorials

How to install ZSH and Oh My Zsh on Ubuntu 18.04 - Chamrong Tutorials

Table of Contents
Why you should install ZSH Shell on your Ubuntu Linux system? Because this application will help you to improve typing command line in your Ubuntu Linux system quickly by just tab a few pressing you will get the full command name and its option immediately. And why you should install Oh My Zsh in your Ubuntu Linux system? Oh- My-Zsh is a ZSH skin. Oh-My-Zsh will improve your terminal themes.

Prerequisites

  1. Fresh Ubuntu Linux System
  2. Git Version Control System installed in your Ubuntu Linux system
  3. Basic knowledge about Linux command line

Getting Started

Step 1: Install ZSH Shell

Run the command line below to update your Ubuntu Linux system to the latest packages.

sudo apt-get update
sudo apt-get upgrade -y


Run the command line below to install ZSH Shell

sudo apt-get install zsh -y


Check the installation status. If it shows the version, it means that you have installed successfully.

zsh --version


Step 2: Making the default Shell

Run the command line below to set up the default shell.

sudo usermod -s /usr/bin/zsh $(whoami)
sudo reboot

Second Line

Choose an option (2) by press the "2" key on your keyboard in the configuration file called (~/.zshrc) with the recommended setting.

Step 3: Install Powerline & powerline fonts


sudo apt install zsh
sudo apt-get install powerline fonts-powerline


Step 4: Install syntax Highlighting or Oh My ZSH


git clone https://github.com/zsh-users/zsh-syntax-highlighting.git "$HOME/.zsh-syntax-highlighting" --depth 1
echo "source $HOME/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> "$HOME/.zshrc"


Now open your new terminal by press the ctrl + alt + T key, you will get a new and pretty shell.

Conclusion

Thank you for your time. If you have any errors or issues related to the installation of ZSH on Ubuntu18.04, please feel free to leave the comment below. I will help you as soon as possible.

2 Comments

Previous Post Next Post