Manjaro-zsh-prompt makes zsh slow to the point of uselessness

A few stable updates back I noticed that my shell became unbearably slow on each command and especially on launch. I am a relative zsh n00b so I used bash when push came to shove and only later on found the minute to debug my .zshrc: source /usr/share/zsh/manjaro-zsh-prompt seemed be the culprit.

Now I know ■■■■ happens and decided to leave it commented out and wait for better days when the devs notice the problem, surely, and fix it. No such luck it seems. I was not keeping a diary tbh but it feels it’s been months since and the problem remains without a single report on the forum to boot.

Any idea what could be the problem and how do I even debug this?

I have looked into the recent commits for both the package and underlying repo and found nothing overtly suspicious besides some font changes. It may be a bad interaction with some other software…

If your .zhistory becomes corrupted it may slow down the shell.

ZSH works fine If I don’t include the prompt customization though.

The manjaro config imports

  • zsh-autosuggestions
  • zsh-syntax-highligthing
  • zsh-completions
  • zsh-history-substring-search

It is well known that imported modules may slow the shell down - but not unbearable slow like you describe.