oh-my-bash icon indicating copy to clipboard operation
oh-my-bash copied to clipboard

Prompt extremely slow suddenly

Open G2-Games opened this issue 1 year ago • 4 comments

My Oh My Bash prompt is suddenly taking several hundred ms to display when hitting enter on the terminal. I'm not sure how to debug this. Uninstalling OMB fixes the problem, so it's related in some way.

G2-Games avatar Sep 27 '24 18:09 G2-Games

I figured the issue out, while spamming the prompt, I saw that the process hg was taking up a lot of CPU time, which turns out to be the mercurial command line interface. Uninstalling mercurial (as I don't use it anyway) fixed my problem.

G2-Games avatar Sep 27 '24 19:09 G2-Games

Which theme were you using? There are a few thmees that implement their own hg prompts.

RobLoach avatar Sep 30 '24 21:09 RobLoach

Powerline

G2-Games avatar Sep 30 '24 21:09 G2-Games

Which theme were you using? There are a few thmees that implement their own hg prompts.

Most of the themes call command hg through scm_char, scm_prompt_info, etc. in identifying the version control system when hg is installed.

https://github.com/ohmybash/oh-my-bash/blob/8cd6496fd09ed8a9a3833679639ba38e3bfd63c6/lib/omb-prompt-base.sh#L120-L129

akinomyoga avatar Mar 21 '25 08:03 akinomyoga