Can't configure p10k using oh my zsh : zsh: command not found: p10k

Viewed 29019

I wanted to install the p10k theme in my terminal but I get an error.

āžœ  ~ p10k configure
zsh: command not found: p10k

I have no clue on what the issue is.
Thanks for your time :),
Hukyfi

3 Answers

Install Powerlevel10k manually.

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

This method of installation won't make anything slower or otherwise sub-par.

powerlevel10k manual

Most probably this step of cloning powerlevel10k is already done:

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k

The problem is in the command mentioned in powerlevel10k README file. It should be

echo 'source ~/.oh-my-zsh/custom/themes/powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc

I know it is a bit late (2 years I guess) but your problem is caused by fact you installed p10k going Oh My Zsh's way (from the doc's) but you forgot to do one simple thing.

To set:

ZSH_THEME="powerlevel10k/powerlevel10k"

in ~/.zshrc.

Related