Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Jenk
· 5y ago · 0 comments
For the manual approach, git provides a shell script to generate the env var __git_ps1 for this very purpose.[1]
[1]:
https://git-scm.com/book/id/v2/Appendix-A%3A-Git-in-Other-En...
Comments
[–]
teknopaul
5y ago
I think a manual approach is covered with vim ;)
[–]
cghendrix
5y ago
Very cool, had no idea!