Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git_prompt_status() slows down zsh with big git repositories #1772

Closed
wants to merge 1 commit into from
Closed

git_prompt_status() slows down zsh with big git repositories #1772

wants to merge 1 commit into from

Conversation

rperier
Copy link

@rperier rperier commented Apr 28, 2013

When you use a theme which uses the git plugin (like fishy), the prompt generation is very slow and sometimes it takes 2-3s to display the prompt. Even if you set the option "oh-my-zsh.hide-status" thought git config, it's slow. After some tests, I found that "git status" is the problem. It is actually used in git_prompt_status() to get the status of the current working tree and update the prompt.

I propose to don't update the prompt when the option "oh-my-zsh.hide-status" is set, it would be very useful for important git repositories (like qtbase on gitorious)

… set. This is very useful for big repositories

where "git status" is very slow.
@rperier
Copy link
Author

rperier commented May 11, 2013

ping ^^

@marcusmueller
Copy link
Contributor

Merged this into my own master branch

@robbyrussell
Copy link
Member

@rperier Can you rebase this for me?

@robbyrussell
Copy link
Member

Closing with #2270.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants