On Windows, GitHub installs a shell that has a really cool prompt. It's inside PowerShell, and looks like this:
I can see how many un-tracked files there are, how many files are staged for commit, how many are to be committed, and what branch I'm on. It's quite fast; there's no delay in displaying the prompt in the shell.
I've been fussing around with my Mac, on the other hand, and I'm having a miserable time getting together a shell prompt that shows this information and isn't frustratingly slow. My most recent attempt has been with a file like this one, which I've trimmed even further to eliminate the svn and hg invocations. It still takes two to three seconds to display the prompt, and isn't nearly as functional as the PowerShell prompt back on Windows.
What can I do to track down the performance problem? How can I get a usable git prompt on Mac OSX?
Code:
C:\projects\my project [master +1 ~12 -0 | +1 ~0 -0 !]>
I can see how many un-tracked files there are, how many files are staged for commit, how many are to be committed, and what branch I'm on. It's quite fast; there's no delay in displaying the prompt in the shell.
I've been fussing around with my Mac, on the other hand, and I'm having a miserable time getting together a shell prompt that shows this information and isn't frustratingly slow. My most recent attempt has been with a file like this one, which I've trimmed even further to eliminate the svn and hg invocations. It still takes two to three seconds to display the prompt, and isn't nearly as functional as the PowerShell prompt back on Windows.
What can I do to track down the performance problem? How can I get a usable git prompt on Mac OSX?