sladaq
Last Updated: February 25, 2016
·
1.738K
· 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:
echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$ZSH_THEME_GIT_PROMPT_SUFFIX"

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

2 Responses
Add your response

4061

There's a discussion going on regarding this issue:
https://github.com/robbyrussell/oh-my-zsh/pull/1570

over 1 year ago ·
4063

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

over 1 year ago ·