How to install and setup the Oh my Zsh and Powerlevel10k (optional)

in Categories: Configuration, Linux, Shell, Tips and Tricks, ZSH.


If you are using the ZSH shell and you want to have some eyecandy, why wouldn’t you setup Oh My Zsh and Powerlevel10k?

Before we start the installation and setup process. Read the following(s):

On Arch Linux

Note: Once again I’ll remind you, now that we are working with git repositories. Just to be safe, create an oh-my-zsh and powerlevel10k folder under the Download folder. The following scripts might download something to your computer and you don’t want them to end up on your home folder. Because later on, you can’t remember what these are and end up with a messy home folder and no one likes that.

Oh My Zsh

Install Oh My Zsh with the following command.

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

Powerlevel10k

Install Powerlevel10k with the following command.

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

Open up the ~/.zshrc ( ZSH’s config file) with nano or vim and configure it with the following theme.

ZSH_THEME="powerlevel10k/powerlevel10k"

Apply changes with the following command.

source ~/.zshrc

Run Powerlevel10k Configuration

This might start automatically, but if not, run the following command.

p10k configure