13

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

Hukify
  • 161
  • 1
  • 2
  • 7

5 Answers5

24

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

18

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
Eric Aya
  • 69,473
  • 35
  • 181
  • 253
Amit Thawait
  • 4,862
  • 2
  • 31
  • 25
7

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.

Igor W.
  • 381
  • 3
  • 11
  • 1
    Actually, my problem was an existing line `ZSH_THEME="robbyrussell"` several lines below – ababak Oct 02 '22 at 11:52
  • Thanks for comment. In my case, which was very similar to Hukify's, what I wrote helped. But your is kinda similar too. Thanks for sharing. – Igor W. Oct 03 '22 at 07:49
  • Also note the ZSH_THEME needs to be set before `source $ZSH/oh-my-zsh.sh` in your .zshrc – dule Apr 28 '23 at 19:49
2

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

$ exec zsh
M33ps
  • 31
  • 3
0

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.

DaveExotic
  • 115
  • 7