powerlevel10k: [BUG] - prompt not showing due to terraform plugin

Randomly prompt is not shown with zsh+ohmyzsh+powerlevel10k

What?

I’m using zsh+ohmyzsh+powerlevel10k on a Manjaro.

The problem is that from time to time shell doesn’t show the prompt. This is fixed after a couple of restarts. Other shells start well.

Possible cause

If I remove the Terraform plugin from powerlevel10k it starts.

I’m removing it from .p10k.zsh from POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS variable.

Request for help

I am not sure how to dig into this to find the root cause. Could you guide me on how to debug this so I can find a fix?

Workaround

For now I have it deactivated.

Other info

❯ uname -a
Linux tufmanjaro 5.15.148-2-MANJARO #1 SMP PREEMPT Sat Feb 10 11:45:52 UTC 2024 x86_64 GNU/Linux

I have installed these packages:

  • extra/zsh 5.9-4
  • aur/zsh-theme-powerlevel10k-git r3918.25e5f59-1

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 15 (8 by maintainers)

Most upvoted comments

If my diagnosis is correct, your machine has very serious issues. They aren’t confined to terraform. Either the OS or the filesystem is malfunctioning.

Nothing in particular. Just a clear cause and effect: when I do X, Y happens, 100%.