News for hackers. Stuff that matters.
Re:Bash PS1 Generator by Jenk on Thursday June 24, 2021 @08:29AM (#27616528)
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...

Re:Bash PS1 Generator by teknopaul on Thursday June 24, 2021 @09:18AM (#27616976)
I think a manual approach is covered with vim ;)
Re:Bash PS1 Generator by cghendrix on Thursday June 24, 2021 @08:50AM (#27616729)
Very cool, had no idea!