Skip to content

Git plugin cannot be disabled and slows down prompt making it unusable #9849

Answered by mcornella
lucian303 asked this question in Help
Discussion options

You must be logged in to vote

That is the git_prompt_info / git_prompt_status / parse_git_dirty functions. You can disable them per repository with one of these run inside the git repository:

git config oh-my-zsh.hide-info 1   # git_prompt_info
git config oh-my-zsh.hide-status 1 # git_prompt_status
git config oh-my-zsh.hide-dirty 1  # parse_git_dirty

You can also disable them entirely by either (1) redefining the function with an empty body in your zshrc file (after OMZ is sourced), or (2) running the commands above with a --global flag.

git_prompt_info(){} # this overwrites the git_prompt_info so it does nothing
git config --global oh-my-zsh.hide-info 1   # git_prompt_info
git config --global oh-my-zsh.hide-sta…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by mcornella
Comment options

You must be logged in to vote
1 reply
@imxys
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #9848 on April 21, 2021 22:20.