sindresorhus / pure

Pretty, minimal and fast ZSH prompt
MIT License
13.12k stars 971 forks source link

Avoids prompt_pure_state_setup check with config option #635

Closed aanzolaavila closed 1 year ago

aanzolaavila commented 2 years ago

Checking inside prompt_pure_state_setup takes quite a long time to execute (happens to me quite a lot in other computer, where it takes like 4+ seconds just to boot the console), I'm adding an option to check whether to do this check or not.

Before

image

After

image
mafredri commented 2 years ago

Would you mind running this on the slow machine (execution times will suffice, no need for all output):

time who -m
time who

And the output from this command:

ls -lha /var/run/?tmp*

I'd like to figure out why these commands are running so slowly on your machine. Does it use spinning HDDs?

sindresorhus commented 2 years ago

I would prefer fixing the underlying issue than adding more options.

aanzolaavila commented 2 years ago

Hi, this is the output from my slow computer Screen Shot 2022-06-15 at 11 43 45 AM

sindresorhus commented 1 year ago

Closing as it should be properly fixed. We cannot add options for everything. I suggest moving this to an issue instead.