Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've had __git_ps1 in my bash prompt for a while, but just recently (I noticed it after I did some messing around with Homebrew and rbenv), it has slowed down my prompt horribly. When I'm in a git directory I have to wait 3-4 seconds after every command for the prompt to appear.

If I just mash return and watch the Activity Monitor, it shows that distnoted and Finder are using more CPU than normal during the delay. Could something git-completion.bash is doing be triggering a notification to Finder? Maybe it involves folder actions or something?

share|improve this question

I haven't had this problem but it looks like others have. Have you seen/tried that solution before?

share|improve this answer
up vote 1 down vote accepted

It turned out to be a three-way interaction: rbenv was slowing down the rubygems version of the hub gem, which was aliased to git so it was slowing down __git_ps1. Switching to the new standalone version of hub fixed my problem.

share|improve this answer
Oh you are a life saver! That's exactly what my problem was. Removing the alias git='hub' fixed the problem! Awesome! – Sukima Oct 1 '13 at 12:11
I should mention I don't use rbenv but I do use rvm. So rvm also interacts with the hub command. – Sukima Oct 1 '13 at 12:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.