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.
Written by Lucas Chmaj
Related protips
2 Responses
There's a discussion going on regarding this issue:
https://github.com/robbyrussell/oh-my-zsh/pull/1570
over 1 year ago
·
@thasmo Thanks for the tip. I look forward to a solution of this
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#