Git completion __git_ps1 really slow on Mac
Posted
by
mckeed
on Super User
See other posts from Super User
or by mckeed
Published on 2012-03-19T16:06:24Z
Indexed on
2012/08/30
15:40 UTC
Read the original article
Hit count: 196
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?
© Super User or respective owner