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

58.4k Views Asked by At

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

6

There are 6 best solutions below

0
Jhon Carlos Acevedo Mendoza On

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

0
Amit Thawait On

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
3
Igor W. On

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.

0
M33ps On

Also typing (below) should show the prompt after you've made the edit in .rc file.

$ exec zsh
1
DaveExotic On

I had the same issue and already installed Powerlevel10k correctly. My problem was I had two ZSH_THEME variables with different values (a default ZSH_THEME="robbyrussell" and the new ZSH_THEME="powerlevel10k/powerlevel10k") in my .zshrc file. I deleted the ZSH_THEME="robbyrussell" line (then source .zshrc) and it worked.

0
Justinas Lelys On

In my case I did add ZSH_THEME="powerlevel10k/powerlevel10k" at the end of ~/.zshrc and it was producing the same error as for question author.

Make sure you add it before source $ZSH/oh-my-zsh.sh line in the ~/.zshrc