How to Customize Linux Terminal Using powerlevel10k?
Last Updated :
24 May, 2024
Sometimes we get bored with the normal Linux Terminal and feel like if we can customize the same, so we can use powerlevel10k for that. It is a theme for ZSH. It changes normal shell commands to colorful commands. To install powerlevel10k we need to install Oh My Zsh, both are open-source in GitHub. We can also use nerd font to make the powerlevel10k 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)"

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 powerlevel10k
powerlevel10k 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 powerlevel10kIn 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 powerlevel10k & Setup It
powerlevel10k 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 "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
change custom font to Hack Nerd Font RegularSetupSetup powerlevel10k Theme
After update powerlevel9k to powerlevel10k, 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
powerlevel10k setup processNote: If the installation fails then just restart your OS again try to install powerlevel10k
Similar Reads
How to Make Linux Terminal look Awesome In this article, we will install and configure some themes and plugins to tweak our Linux terminal for better productivity and a fancier look. These features include autocompletion, autosuggestion, command-line search, syntax highlighting, and better support for git and environment managers. Zsh The
3 min read
How to Make Custom Commands for Linux Terminal? With commands, users can communicate with the operating system via the Linux terminal, a handy tool. Although the terminal has several pre-defined commands, you can improve productivity and optimize processes by writing your custom commands. This article explains how to write and use custom commands
4 min read
Formatted text in Linux Terminal using Python This article demonstrates how to print formatted text in Linux terminal using Python programming language. Formatted text(also called styled text or rich text) as opposed to plain text, has styling information like: color (text color, background color), style (bold or italic), and some other special
4 min read
How to Open Terminal in Linux? The Shell or Command Prompt are common name for the Linux Terminal. The terminal was designed as a Linux File Browser, and this function is still carried out using it. You may traverse your files and undo changes made by using the Terminal as a File Browser. However, the very first step will be to O
4 min read
How to Customize Bash Colors and Content in Linux Terminal Prompt If you are using the Linux operating system, that means you use the CLI most of the time. And do more work on the terminal. By default, most Linux Operating systems provide you the bash shell. Shell provides the interface between the user and kernel and executes commands. In this article, we are goi
9 min read