This page collects the most common questions about Powerlevel10k, drawn directly from the official documentation. Topics range from day-to-day tasks like updating or changing colors, to deeper questions about the relationship with Powerlevel9k and the mechanics of instant prompt.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/romkatv/powerlevel10k/llms.txt
Use this file to discover all available pages before exploring further.
How do I update Powerlevel10k?
How do I update Powerlevel10k?
| Installation | Update command |
|---|---|
| Manual | git -C ~/powerlevel10k pull |
| Oh My Zsh | git -C "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k" pull |
| Prezto | zprezto-update |
| Zim | zimfw update |
| Antigen | antigen update |
| Antidote | antidote update |
| Zplug | zplug update |
| Zgen | zgen update |
| Zplugin | zplugin update |
| Zinit | zinit update |
| Zi | zi update |
| Zap | zap update |
| Homebrew | brew update && brew upgrade |
| Arch Linux | yay -S --noconfirm zsh-theme-powerlevel10k-git |
| Alpine Linux | apk update && apk upgrade |
exec zsh rather than source ~/.zshrc.How do I uninstall Powerlevel10k?
How do I uninstall Powerlevel10k?
-
Remove all references to
p10kfrom~/.zshrc. The configuration wizard adds a snippet at the top:And at the bottom:Remove both. -
Remove all references to
powerlevel10kfrom~/.zshrc,~/.zpreztorc, and~/.zimrc. -
Verify no references remain:
-
Delete the configuration file:
-
Delete the source files. The command depends on your installation method:
Installation Uninstall command Manual rm -rf ~/powerlevel10kOh My Zsh rm -rf -- "${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k"Prezto n/a Zim zimfw uninstallAntigen antigen purge romkatv/powerlevel10kAntidote antidote purge romkatv/powerlevel10kZplug zplug cleanZgen zgen resetZplugin zplugin delete romkatv/powerlevel10kZinit zinit delete romkatv/powerlevel10kZi zi delete romkatv/powerlevel10kZap zsh -ic 'zap clean'Homebrew brew uninstall powerlevel10kArch Linux yay -R --noconfirm zsh-theme-powerlevel10k-gitAlpine Linux apk del zsh-theme-powerlevel10k -
Restart Zsh with
exec zsh(do not usesource ~/.zshrc). -
Delete cache files:
How do I install Powerlevel10k on a machine without Internet access?
How do I install Powerlevel10k on a machine without Internet access?
-
On the offline machine, run:
-
On a machine with Internet access, replace
target_unamewith the output from step 1: -
Copy
~/powerlevel10kfrom the online machine to the offline machine. -
On the offline machine, add the source line to
~/.zshrc: -
If
~/.zshrcsetsZSH_THEME, remove that line:
~/powerlevel10k on both machines and repeat steps 1–3.Where can I ask for help and report bugs?
Where can I ask for help and report bugs?
Which aspects of shell and terminal does Powerlevel10k affect?
Which aspects of shell and terminal does Powerlevel10k affect?
PS1 and RPS1 parameters.Everything Powerlevel10k does not affect:- Terminal window/tab title
- Colors used by
ls - The behavior of
git - Tab completion content and style
- Command line colors (syntax highlighting, autosuggestions, etc.)
- Key bindings
- Aliases
- Prompt parameters other than
PS1andRPS1 - Zsh options other than those related to prompting
- The set of available commands — the only exception is the
p10kcommand itself
I'm using Powerlevel9k with Oh My Zsh. How do I migrate?
I'm using Powerlevel9k with Oh My Zsh. How do I migrate?
POWERLEVEL9K_* configuration parameters continue to work without modification. Optionally, install the recommended font and run p10k configure to choose a new prompt style.Is it really fast?
Is it really fast?
How do I configure instant prompt?
How do I configure instant prompt?
~/.zshrc:source with anything else, call zcompile, or redirect output.When instant prompt is active, stdin is redirected to /dev/null and stdout/stderr go to a temporary file for the duration of initialization. Once Zsh is fully initialized, the descriptors are restored and the buffered output is printed.Control verbosity via POWERLEVEL9K_INSTANT_PROMPT in ~/.p10k.zsh:verbose(default) — prints a warning when console output is detected during initialization.quiet— silences the warning without suppressing the output.off— disables instant prompt completely.
How do I initialize direnv when using instant prompt?
How do I initialize direnv when using instant prompt?
~/.zshrc:How do I export GPG_TTY when using instant prompt?
How do I export GPG_TTY when using instant prompt?
~/.zshrc:export GPG_TTY=$(tty) because it avoids spawning a subshell.What do different symbols in Git status mean?
What do different symbols in Git status mean?
| Symbol | Meaning | Source |
|---|---|---|
feature | current branch; replaced with #tag or @commit if not on a branch | git status --ignore-submodules=dirty |
master | remote tracking branch; shown only when different from local | git rev-parse --abbrev-ref --symbolic-full-name @{upstream} |
wip | latest commit summary contains “wip” or “WIP” | git show --pretty=%s --no-patch HEAD |
= | up to date with the remote | git rev-list --count HEAD...@{upstream} |
⇣42 | this many commits behind the remote | git rev-list --right-only --count HEAD...@{upstream} |
⇡42 | this many commits ahead of the remote | git rev-list --left-only --count HEAD...@{upstream} |
⇠42 | this many commits behind the push remote | git rev-list --right-only --count HEAD...@{push} |
⇢42 | this many commits ahead of the push remote | git rev-list --left-only --count HEAD...@{push} |
*42 | this many stashes | git stash list |
merge | repository state | git status --ignore-submodules=dirty |
~42 | this many merge conflicts | git status --ignore-submodules=dirty |
+42 | this many staged changes | git status --ignore-submodules=dirty |
!42 | this many unstaged changes | git status --ignore-submodules=dirty |
?42 | this many untracked files | git status --ignore-submodules=dirty |
─ | count of staged/unstaged/untracked files is unknown | echo $POWERLEVEL9K_VCS_MAX_INDEX_SIZE_DIRTY |
How do I change the format of Git status?
How do I change the format of Git status?
~/.p10k.zsh, search for my_git_formatter, and edit its source code directly. The function is fully commented and controls every detail of what the vcs segment displays.Why is Git status from $HOME/.git not displayed in prompt?
Why is Git status from $HOME/.git not displayed in prompt?
~/.p10k.zsh contains this parameter by default:$HOME/.git, open ~/.p10k.zsh and remove (or comment out) the POWERLEVEL9K_VCS_DISABLED_WORKDIR_PATTERN parameter.Why does Git status sometimes appear grey and then get colored after a short period?
Why does Git status sometimes appear grey and then get colored after a short period?
POWERLEVEL9K_VCS_MAX_SYNC_LATENCY_SECONDS (default: 10 milliseconds), Powerlevel10k displays the last known status in grey and continues updating asynchronously.In Rainbow style, the loading background can be hard to read. To adjust it, open ~/.p10k.zsh, find POWERLEVEL9K_VCS_LOADING_BACKGROUND, and change the value:source ~/.p10k.zsh to apply the change to your current session.How do I add username and/or hostname to prompt?
How do I add username and/or hostname to prompt?
~/.p10k.zsh and ensure context is in POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS (it is included but governed by a condition by default). Then find this block:username@hostname. You can also adjust nearby parameters to change the display format or colors, or move context to POWERLEVEL9K_LEFT_PROMPT_ELEMENTS.Why do some prompt segments appear and disappear while typing?
Why do some prompt segments appear and disappear while typing?
POWERLEVEL9K_<SEGMENT>_SHOW_ON_COMMAND are shown only when the command you are currently typing matches a given pattern. For example:~/.p10k.zsh, search for SHOW_ON_COMMAND, and either remove those parameters (to always show the segment) or change their values.You can also define a toggle function to switch between always-shown and on-command modes at runtime:How do I change prompt colors?
How do I change prompt colors?
~/.p10k.zshOpen ~/.p10k.zsh and search for “color”, “foreground”, or “background”. For example:#RRGGBB:source ~/.p10k.zsh to apply changes to the current session.Why does Powerlevel10k spawn extra processes?
Why does Powerlevel10k spawn extra processes?
vcs segment. Gitstatus spawns gitstatusd and zsh for its operations. Powerlevel10k may also spawn zsh processes to perform background computations without blocking the prompt.These processes are not shared between interactive shells and terminate automatically when the parent zsh process exits or calls exec(3).Are there configuration options that make Powerlevel10k slow?
Are there configuration options that make Powerlevel10k slow?
Is Powerlevel10k fast to load?
Is Powerlevel10k fast to load?
What is the relationship between Powerlevel9k and Powerlevel10k?
What is the relationship between Powerlevel9k and Powerlevel10k?
POWERLEVEL9K_ for backward compatibility.Virtually all code in Powerlevel10k has been rewritten. There is no meaningful overlap in implementation between the two projects today. Powerlevel10k is committed to maintaining backward compatibility with all Powerlevel9k configuration parameters indefinitely.Does Powerlevel10k always render exactly the same prompt as Powerlevel9k given the same config?
Does Powerlevel10k always render exactly the same prompt as Powerlevel9k given the same config?
- Only the
gitvcs backend is enabled by default in Powerlevel10k. To addsvnandhg, setPOWERLEVEL9K_VCS_BACKENDS. These backends are not yet optimized and will make the prompt slow. POWERLEVEL9K_VCS_SHOW_SUBMODULE_DIRTY=trueis not supported.POWERLEVEL9K_MODEdefined before sourcing the theme is ignored by Powerlevel9k but honored by Powerlevel10k.- Powerlevel10k respects
ZLE_RPROMPT_INDENT(Powerlevel9k does not), which can result in an extra trailing space on the right prompt. AddZLE_RPROMPT_INDENT=0to~/.zshrcto remove it. - Spacing around icons is consistent in Powerlevel10k. Add
POWERLEVEL9K_LEGACY_ICON_SPACING=trueto~/.zshrcto restore Powerlevel9k’s inconsistent spacing.
What is the best prompt style in the configuration wizard?
What is the best prompt style in the configuration wizard?
- Pure style replicates the Pure Zsh theme and is primarily for users migrating from it. If you are not, choose Lean instead.
- To confine colors to your terminal’s color palette (e.g., Solarized Dark), use Rainbow, Lean → 8 colors, or Pure → Original.
- All styles support an ASCII charset option for maximum compatibility.
- If you use transient prompt, a two-line prompt gives you extra typing space without sacrificing scrollback readability.
- If you use vi mode, choose a style with
prompt_char(shown as❯in the wizard). - For minimal horizontal space usage: use Lean, disable current time and frame, choose “few icons.”
p10k configure as many times as you like to experiment.How to make Powerlevel10k look like robbyrussell Oh My Zsh theme?
How to make Powerlevel10k look like robbyrussell Oh My Zsh theme?
~/.p10k.zsh, then source it from ~/.zshrc:Can prompts for completed commands display error status for those commands instead of the commands preceding them?
Can prompts for completed commands display error status for those commands instead of the commands preceding them?
What is the minimum supported Zsh version?
What is the minimum supported Zsh version?
How were the screenshots and animated gifs created?
How were the screenshots and animated gifs created?
#171A1B instead of #2E3436 — twice as dark).Syntax highlighting was provided by zsh-syntax-highlighting.How was the recommended font created?
How was the recommended font created?
git and docker):.ttf files will appear in ./out if the build succeeds.How to package Powerlevel10k for distribution?
How to package Powerlevel10k for distribution?