Git plugin lags bash prompt for large repositories. #6
Labels
bug-report
Issues about bug reporting
help-wanted
Issues that require help from third party
P2 - Important
Priority 2
performance-issue
This problem is identical to a problem in
oh-my-zsh
, which has a few proposed solutions.Synopsis
When the current working directory is in a large git repository, the bash prompt takes around 5 seconds (in my case) to load.
Steps to reproduce
git clone
on a large repository.cd
into that repository.Remarks
This problem occurs in both Ubuntu and Cygwin.
In
oh-my-zsh
, but notoh-my-bash
, I was able to speed it up by doing the following:cd
into the large repository.git config --edit
I think it's an elegant solution because it is on a per-repository basis; however, this does not work
oh-my-bash
, not even if I change[oh-my-zsh]
to[oh-my-bash]
.The text was updated successfully, but these errors were encountered: