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

Remove dirty git check from Agnoster theme's prompt on large git repo #7813

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hoanghuynh
Copy link

Right now Agnoster uses parse_git_dirty to check if a git repo is dirty. On a large git repo, this command may takes several seconds to finish, thus slowing the prompt for quite some time.

This PR adds support for a new git config option that's called oh-my-zsh.hide-dirty. You can set it to 1 to hide dirty status on your git repo. The git command is git config --add oh-my-zsh.hide-dirty 1.

Right now Agnoster uses `parse_git_dirty` to check if a git repo is dirty. On a large git repo, this command may takes several seconds to finish, thus slowing the prompt for quite some time.

This PR adds support for a new git config option that's called `oh-my-zsh.hide-dirty`. You can set it to `1` to hide dirty status on your git repo. The `git` command is `git config --add oh-my-zsh.hide-dirty 1`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: theme Issue or PR related to a theme
Projects
Status: Backlog
Development

Successfully merging this pull request may close these issues.

None yet

2 participants