(for those of you on the git mailing list, apologies for the dup) I've been wanting a clean way to see the status of a repository in the bash prompt, but anything I did was a bit too slow in some of my users configurations.
I finally came up with something that - will normally show the same thing as the __git_ps1 that is found in contrib/completion/git-completion.bash in the git source tree. - but when you switch branches or working directory, it will parse it status and show you color coded counts of how many files in each category there are (staged, modified, untracked, unmerged) There's also a little gimmick in there. If you hit enter twice in quick succession at the bash prompt, you'll get this detailed information too. I wasn't willing to do more than that, and yet I didn't want 'git status' running on *every* command. I hope this is useful to someone. Comments welcome. http://sitaramc.github.com/2-command-line-usage/souped-up-bash-prompt.html Regards, Sitaram --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "GitHub" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/github?hl=en -~----------~----~----~----~------~----~------~--~---
