3

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?

1 Answer 1

1

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.

2
  • Oh you are a life saver! That's exactly what my problem was. Removing the alias git='hub' fixed the problem! Awesome!
    – Sukima
    Commented Oct 1, 2013 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
    Commented Oct 1, 2013 at 12:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .