I'm currently using git-prompt.sh to customize my bash prompt (PS1) to show a status of my git repo in my bash prompt.
This stackoverflow answer was very helpful but not exactly what I'm looking for.
My current .bashrc appears like this:
[aj@computer-name my_current_working_directory (git-branch-name)]$
My .gitconfig uses the following:
[color "status"]
added = green
changed = yellow
untracked = red
The questions is. How do I achieve the following?
I would like my bash prompt to continue to appear the way it does above but change the color of the (git-branch-name)
based on the status colors I have set in my .gitconfig
Thanks a million!