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
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
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.
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.
ZSH_THEME="robbyrussell"
several lines below –
Coumarone source $ZSH/oh-my-zsh.sh
in your .zshrc –
Guenther Also typing (below) should show the prompt after you've made the edit in .rc file.
$ exec zsh
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
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.
© 2022 - 2025 — McMap. All rights reserved.