mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-12 19:18:28 +02:00
39 lines
1.8 KiB
Markdown
39 lines
1.8 KiB
Markdown
# Powerlevel10k
|
|
|
|
Powerlevel10k is a theme for ZSH. It's a backward-compatible fork of
|
|
[Powerlevel9k](https://github.com/bhilburn/powerlevel9k) with lower latency and better
|
|
prompt responsiveness.
|
|
|
|
If you like the look and feel of Powerlevel9k but feeling frustrated by the
|
|
slow prompt, simply replace your `powerlevel9k` theme with `powerlevel10k` and
|
|
enjoy responsive shell like it's 80's again!
|
|
|
|
Powerlevel10k uses the same configuration options as Powerlevel9k and produces the
|
|
same results. It's simply faster. There is no catch.
|
|
|
|
**Do not load both Powerlevel9k and Powerlevel10k themes at the same time. Variable name
|
|
clashes will cause mayhem. Source either one or the other. Consider Powerlevel10k
|
|
a patched fork of Powerlevel9k, which it is.**
|
|
|
|
For installation and configuration instructions, see
|
|
[Powerlevel9k](https://github.com/bhilburn/powerlevel9k). Everything in there applies to
|
|
Powerlevel10k as well.
|
|
|
|
If you are on Linux or WSL, consider enabling [gitstatus](https://github.com/romkatv/gitstatus)
|
|
plugin for massive performance improvement in vcs/prompt segment. It works well with Powerlevel10k.
|
|
|
|
## How fast is it?
|
|
|
|
Powerlevel10k with [gitstatus](https://github.com/romkatv/gitstatus) renders prompt 5+ times
|
|
faster than Powerlevel9k. In some cases it can be over 10 times faster. When using Linux,
|
|
you should expect less than 50ms prompt latency in most cases, about 100ms in large git
|
|
repos and 200ms in huge repos such as Linux kernel. To get comfortable upper bound on
|
|
latency in any repo, set `GITSTATUS_DIRTY_MAX_INDEX_SIZE=4096`. It'll disable dirty file
|
|
scanning in repos with over 4k files. This should give you under 100ms prompt latency
|
|
everywhere.
|
|
|
|
## What's the catch?
|
|
|
|
Really, there is no catch. It's the same prompt with the same flexibility and literally the
|
|
same configuration as Powerlevel9k but **much faster**.
|