I am using git-aware-prompt in my
.bash_profile on Ubuntu 15.4 like this:
export GITAWAREPROMPT=~/.bash/git-aware-prompt source $GITAWAREPROMPT/main.sh
When I am in one of my main repository directories this nicely shows the git branch in my prompt. However, after a few days (I do not restart my box often) it takes a long time after I run a command until the prompt comes back.
Especially when I run commands like
git add foo or similar. It takes over a second for the next line of prompt to show up. Even if I open a new terminal window it is still slow.
If I navigate to a different git repo this does not happen. In directories without git it's also fine.
I don't think it's related to the git-aware-prompt, but rather to the repository. There might be some weird cache that I do not know about.
What can I do to make this go fast again?