This page covers the most common problems encountered when running Powerlevel10k, along with their root causes and proven fixes. Work through the relevant section step by step — most issues are resolved in under a minute.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.
[oh-my-zsh] theme "powerlevel10k/powerlevel10k" not found
[oh-my-zsh] theme "powerlevel10k/powerlevel10k" not found
-
If this succeeds and prints something like
typeset P9K_VERSION=1.19.14, the theme is loaded but Oh My Zsh is also trying to load it a second time. Remove this line from~/.zshrc: -
If this fails with
typeset: no such variable: P9K_VERSION, the theme directory is missing. Clone it:
Question mark in prompt
Question mark in prompt
? — This is normal. It means there are untracked files in the current Git repository. Run git status to inspect them. You can change or remove this symbol by searching for untracked files in ~/.p10k.zsh.Weird-looking ? — If the question mark looks wrong (garbled, boxed, or wrong glyph), your terminal font is missing the required glyphs. Install the recommended font and run p10k configure.Icons, glyphs, or powerline symbols don't render
Icons, glyphs, or powerline symbols don't render
- Restart your terminal completely (not just the shell).
- Install the recommended font (MesloLGS NF) and configure your terminal to use it.
- Run
p10k configureto regenerate~/.p10k.zshwith the correct icon set.
Sub-pixel imperfections around powerline symbols
Sub-pixel imperfections around powerline symbols
- Switch to the recommended font if you haven’t already.
- Change terminal font size by one point up or down (e.g., iTerm2 renders perfectly at sizes 11 and 13 but not at 12).
- Enable built-in powerline glyph rendering in your terminal’s settings (iTerm2 supports this).
- Adjust font hinting or anti-aliasing in terminal settings.
- Try shifting all text one pixel in any direction if your terminal supports it.
- Try a different terminal.
p10k configure and select Lean. This style looks modern and lightweight and is immune to powerline rendering imperfections.Error: character not in range
Error: character not in range
zsh: character not in range, your locale does not support UTF-8. Fix steps:- Over SSH: See this comment for SSH UTF-8 locale configuration.
- Local terminal: Search for “set UTF-8 locale” and your operating system name.
Cursor is in the wrong place
Cursor is in the wrong place
zsh: character not in range, fix your UTF-8 locale (see Error: character not in range above).If the command prints ❯ but the cursor is still misplaced:- Install the recommended font and run
p10k configure. - If that doesn’t help, add
unset ZLE_RPROMPT_INDENTat the bottom of~/.zshrc.
-
Prompt aligns with the frame — This indicates a bug in the theme or config. Run
print -rl -- ${(eq+)PROMPT} ${(eq+)RPROMPT}and look for stray%{...%}or backslash escapes. -
Prompt is longer than the frame — Your terminal is rendering ambiguous-width characters as double-width. This is a terminal bug or misconfiguration.
-
Prompt is shorter than the frame and is mangled (e.g., missing a space after the check mark) — Could be a low-level macOS bug, or wide Unicode glyphs being rendered as narrow by Konsole, Hyper, or the integrated VSCode Terminal.
-
Prompt is shorter than the frame and is not mangled — Likely a misconfigured locale.
Prompt wrapping around in a weird way
Prompt wrapping around in a weird way
Right prompt is in the wrong place
Right prompt is in the wrong place
Configuration wizard runs every time Zsh starts
Configuration wizard runs every time Zsh starts
POWERLEVEL9K_* parameters are defined when Zsh starts. It creates ~/.p10k.zsh and adds a source line to ~/.zshrc. If the wizard keeps running, it means ~/.zshrc is terminating before it reaches that source line — most often due to a syntax error.To diagnose:~/.zshrc, then restart Zsh normally.Some prompt styles are missing from the configuration wizard
Some prompt styles are missing from the configuration wizard
- Pure style with Snazzy scheme missing — Requires Zsh >= 5.7.1 and a truecolor terminal (
COLORTERMmust be24bitortruecolor). Verify withprint -P '%F{#ff0000}red%f'. - Non-Lean styles missing — Requires at least 256 colors. Verify with
print $terminfo[colors]. - Unicode prompt styles missing — Requires a UTF-8 locale. Verify with
locale -a. Also requiresMULTIBYTEshell option:print -r -- ${options[MULTIBYTE]}should outputon. - Certain glyph-based styles missing — The wizard asks a few questions to assess your font’s glyph support. If any answer indicates missing glyphs, styles that require them are hidden. Fix: restart your terminal, install the recommended font, and run
p10k configureagain.
Cannot install the recommended font
Cannot install the recommended font
p10k configure can install the font for you automatically — just answer Yes when asked.Extra or missing spaces in prompt compared to Powerlevel9k
Extra or missing spaces in prompt compared to Powerlevel9k
ZLE_RPROMPT_INDENT Zsh parameter (Powerlevel9k ignores it). By default ZLE_RPROMPT_INDENT=1, leaving a one-character gap at the right edge. Add this to ~/.zshrc to eliminate it:ZLE_RPROMPT_INDENT=0. If you see visual artifacts or wrong cursor positions after setting it, remove the line.~/.zshrc:POWERLEVEL9K_LEGACY_ICON_SPACING when using p10k configure to generate a fresh config.Weird things happen after `source ~/.zshrc`
Weird things happen after `source ~/.zshrc`
source ~/.zshrc in a live shell is almost always a bad idea. It can cause random errors, misbehaving code, and progressive slowdown of Zsh. This is true regardless of which theme you use.The correct way to apply changes to ~/.zshrc is to restart Zsh:exec zsh is far more reliable than source ~/.zshrc.Transient prompt stops working after some time
Transient prompt stops working after some time
source ~/.zshrc in a live shell — see Weird things happen after source ~/.zshrc above. Restart Zsh with exec zsh to restore correct behavior.Cannot make Powerlevel10k work with my plugin manager
Cannot make Powerlevel10k work with my plugin manager
-
Disable your current theme in your plugin manager:
- Oh My Zsh: Remove the
ZSH_THEME=...line from~/.zshrc. - zplug: Remove the
zplugline referencing your current theme. - prezto: Add
zstyle :prezto:module:prompt theme offto~/.zpreztorc. - antigen: Remove the
antigen theme ...line from~/.zshrc.
- Oh My Zsh: Remove the
-
Install Powerlevel10k manually:
Directory is difficult to see in prompt when using Rainbow style
Directory is difficult to see in prompt when using Rainbow style
- Run
p10k configureand choose a more readable prompt style. - Change your terminal’s color palette (try Tango Dark or Solarized Dark, or just change the “blue” color).
- Edit
~/.p10k.zshdirectly and adjust these parameters:
Incorrect foreground color in VSCode Terminal
Incorrect foreground color in VSCode Terminal
Horrific mess when resizing terminal window
Horrific mess when resizing terminal window
-
Use kitty >= 0.24.0 with terminal-shell integration enabled:
- Apply the Zsh patch from romkatv/zsh fix-winchanged and rebuild Zsh from source. This works on terminals that reflow the saved cursor position along with text.
- Disable text reflow on resize in your terminal’s settings (not all terminals offer this option).
-
Reduce prompt height to minimize the chance of vertical distance changing:
Icons cut off in Konsole
Icons cut off in Konsole
- Use a different terminal. Konsole is the only terminal that exhibits this clipping behavior.
- Use a monospace font such as the recommended font.
- Add a trailing space to the affected icon. For example, for
os_icon: - Use a text fallback instead of the glyph. For example, for the Arch Linux logo:
- Disable the segment entirely by removing the segment name from
POWERLEVEL9K_LEFT_PROMPT_ELEMENTSandPOWERLEVEL9K_RIGHT_PROMPT_ELEMENTS.
Arch Linux logo has a dot in the bottom right corner
Arch Linux logo has a dot in the bottom right corner
- Switch to a correct font, such as the recommended font, which has the correct logo.
-
Render the icon in regular (non-bold) typeface. Open
~/.p10k.zsh, findPOWERLEVEL9K_OS_ICON_CONTENT_EXPANSION, and remove%B:
Incorrect git status in prompt
Incorrect git status in prompt
git implementation that can cause discrepancies between what git status shows and what appears in the prompt.The most notable limitation is that libgit2 does not support skipHash. If you see incorrect git status, check your config:skipHash is enabled (possibly implicitly, via a feature like manyFiles), consider disabling it: