Skip to content
Related Articles

Related Articles

How to Customize Linux Terminal Using Powerline10k?
  • Last Updated : 06 Jan, 2021

Sometimes we get bored with normal Linux Terminal and feel like if we can customize the same, so we can use Powerline10k for that. It is a theme for ZSH. It changes normal shell commands to colorful commands. To install powerline10k we need to install Oh My Zsh, both are open-source in GitHub. We can also use nerd font to make the powerline10k theme font more beautiful.

Install Oh My Zsh

To install Oh My Zsh open terminal and run

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

Install Oh My Zsh

 If this curl installation method shows any error use wget method 



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

Install Powerline10k

Powerline10k theme installation becomes easy if oh my zsh is installation successful. Just run these two commands.

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
Install Powerline10k

install powerline10k

In another way, we can install it directly from GitHub and set it up 

git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ~/powerlevel10k
echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc

Install Nerd Font For Powerline10k & Setup It

Powerline10k works well with nerd font they also recommend using nerd font, and it is easy to install the font in Linux. To install nerd font go to the official nerd font GitHub page https://github.com/ryanoasis/nerd-fonts and download font example Hack Nerd Font, JetBrains Mono Nerd Font, Ubuntu Nerd Font, etc.

Install Nerd Font For Powerline10k & Setup It

Install “Hack Nerd  Font Regular”

To set up it nerd font in terminal open terminal preferences and change the custom font to Hack Nerd Font Regular

Install Nerd Font For Powerline10k & Setup It

change custom font to Hack Nerd Font RegularSetup

Setup Powerline10k Theme

After update powerline9k to powerline10k, it becomes easy to set up a theme. Do just type “p10k configure” in your terminal after choose options how you want to give looks to your terminal

Setup Powerline10k Theme

Powerline10k setup process

Note: If the installation fails then just restart your OS again try to install powerline10k

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.

My Personal Notes arrow_drop_up