linux, tutorial,

Install ZSH Shell with Oh My ZSH and PowerLevel10K Theme and Fonts on Linux

Debashish D. Dev Debashish D. Dev Follow Apr 29, 2022 · 2 mins read
Install ZSH Shell with Oh My ZSH and PowerLevel10K Theme and Fonts on Linux
Share this

Have you ever wondered seeing YouTuber using fancy terminal? With fancy Icon and lots of suggestions ? lets do this with our own terminal. In this tutorial we will know how can we install ZSH Shell ( ZShell) with Oh my ZSH and PowerLevel10K theme. The P10K theme looks really awesome on terminal. So Lets get started…

First Install ZSH On ubuntu / linux following this tutorial

Install ZSH Shell with Oh My ZSH and PowerLevel10K Theme and Fonts on Linux

  1. As we are trying to install a new magical thing on our system, we need to check if there is any update available .Run this command on terminal.

    sudo apt update
    
  2. Now install upgrades

    sudo apt upgrade
    
  3. Now we need curl and wget to get the files into our system.

    sudo apt install curl wget git
    
  4. Now lets import all the files from github

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

    Install ZSH with Oh My ZSH Ubuntu

    It Might Ask you to make zsh your default shell. Write Y and Enter. Write your password.

  5. Now you will see a screen like this
  6. Now We will install oh my zsh theme and configure it.
  7. Open .zshrc file with any editor you want. I will open it with gedit.

    gedit .zshrc
    
  8. You will find ZSH_THEME variable with the value robbyrussell . We will change it to powerlavel10K. lets Download the theme using the command

    git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
    
  9. Now Log out from your session and login again.
  10. Change the value of ZSH_THEME like this

    ZSH_THEME=”powerlevel10k/powerlevel10k”

  11. We Need to configure correct font for P10K Theme.

    Download Those Four Font

    1. MesloLGS NF Regular.ttf
    2. MesloLGS NF Bold.ttf
    3. MesloLGS NF Italic.ttf
    4. MesloLGS NF Bold Italic.ttf

Install those font and change your terminal font to MesloLGS NF.

  1. Now Open Your Terminal and You will see something like this

Follow the questions and ans accordingly.

  1. Now we will install ZSH-AutoSuggestions and ZSH-Syantax-Highlighting

    git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
    git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
    
  2. Now add those plugin in .zshrc file.

    plugins = (git zsh-autosuggestions zsh-syntax-highlighting)
    
  3. Now Save Any Reload.

Join Newsletter
Get the latest news right in your inbox. We never spam!
Debashish D. Dev
Written by Debashish D. Dev Follow
My love for all the folk artists across the world