Timeout for slow segments? #6855
Closed
rudenkornk
started this conversation in
Ideas
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Sometimes
git
segment is too slow due to fetchinggit
status in large repos.For example, in vanilla
llvm-project
this takes around 500ms, which is too slow.There are several options to solve this:
fetch_status=false
option. Works, but disables status display in all project.exclude_folders
option. Also works, but requires manual tracking of large projects.untrackedCache = true
in~/.gitconfig
. Works, though not "blazingly fast".Third solution works just fine for me, but it required some investigation and manual tweaking for this specific case.
This gave me an idea if this possible to add some kind of timeout for slow segments similar to
starship
'scommand_timeout
?Beta Was this translation helpful? Give feedback.
All reactions