Y
Hacker News
new
|
ask
|
show
|
jobs
by
graywh
5106 days ago
There's a __git_ps1 function that's included with the git bash completion script (edit: it works with zsh, too -- the __git_ps1 function and the completion).