Last Updated: February 25, 2016
· teachmeter

Faster ZSH in large GIT repository

If you have a big repo and every cd hurts from your ZSH shell using git plugin try out this replacement

Go to ~/.oh-my-zsh/lib/git.zsh
and find function calles gitpromptinfo()

Now change the echo lines from:
echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_SUFFIX"

to this:

Note that this will leave only the current branch name without checking all the rest.

2 Responses
Add your response

There's a discussion going on regarding this issue:

over 1 year ago ·

@thasmo Thanks for the tip. I look forward to a solution of this

over 1 year ago ·