powerlevel10k: Powerlevel10k suddenly become broken in JetBrains IDE terminal

Powerlevel10k installed through Oh My Zsh. There are was not updates of the IDE itself, but prompt line starts with [0m, ends with [K and cursor is on the next line: image

How I can find the reason?

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 4
  • Comments: 48 (20 by maintainers)

Most upvoted comments

True. Temporarily switched to robbyrussell. Adding this to zshrc helps

if [[ $__INTELLIJ_COMMAND_HISTFILE__ ]]; then
  ZSH_THEME="robbyrussell"
else
  ZSH_THEME="powerlevel10k/powerlevel10k"
fi

Reference : https://stackoverflow.com/questions/43056684/oh-my-zsh-theme-not-rendering-properly-in-intellij

The issue is with your font configuration. Zsh configs are irrelevant here. You’ll see the same thing in bash or even if you run something like vi.

P.S.

In the future, when you have a problem, err on the side of opening a new issue instead of commenting on a closed one, especially when the original issue was fixed. It’s almost always something else.

Does this fix it?

unset ITERM_SHELL_INTEGRATION_INSTALLED && p10k reload