I've found that the changes in this PR make things more than twice as fast inside a Git repo.
There are two changes here:
Remove a call to precmd_update_git_vars inside git_super_status: not needed as it is called inside the precmd hook each time the prompt is computed
Add the -uno flag to the git status call; what this does is keep Git from checking for untracked files, which you've already done in the git diff call a few lines above the call.
I've found that the changes in this PR make things more than twice as fast inside a Git repo.
There are two changes here:
precmd_update_git_vars
insidegit_super_status
: not needed as it is called inside theprecmd
hook each time the prompt is computed-uno
flag to thegit status
call; what this does is keep Git from checking for untracked files, which you've already done in thegit diff
call a few lines above the call.