Powerlevel10k can generate the same prompt as Pure.
git clone https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>! ~/.zshrc
If you are using a plugin manager, see alternative installation options.
Restart zsh. Configuration wizard will start automatically. If it doesn't, type p10k configure
. Choose "Pure" style when asked.
Powerlevel10k with Pure style is faster than plain Pure and gives you access to extra features.
- Powerlevel10k is much faster at fetching Git status. This can make a difference if you are working in a large Git repository, on a slow machine, or on Windows.
- If you enable Instant Prompt in the configuration wizard, zsh will start instantly even if your
~/.zshrc
is sourcing dozens of plugins. Powerlevel10k is effectively reducing zsh startup time while Pure is increasing it. - If you enable Transient Prompt in the configuration wizard, prompt will be automatically trimmed down when accepting a command. See demo.
- Powerlevel10k is almost infinitely configurable, which is evidenced by its ability to emulate Pure given a suitable set of configuration options. When using Powerlevel10k, you can easily add extra information to the prompt, configure right prompt or completely change your shell style.
Can I have the prompt segments as in the "Lean" option ? I don't see the prompt segments (pyenv, goenv...) in .p10k.zsh when using this "Pure". But I really love this.