I've successfully played around with some of the color settings in the Git Bash on Windows - I'm able to set a few things, like the colors of the local, the current and remote branches in my .gitconfig
file:
[color "branch"]
current = cyan bold
local = cyan
remote = red
But what I haven't managed to change are the colors of the prompt - the username@machine
at the beginning of the line (in the yellow rectangle in my screenshot), and the project and branch I'm currently on (purple rectangle).
Is there a way to influence those, too? Which .gitconfig
settings do I need to set to change those colors?
~/.bashrc
or~/.bash_profile
? What happens if you sayPS1=""
? – Vogeley.bashrc
file with a few bash alias - but nobash_profile
– InbreedSET PS1=""
line to.bashrc
doesn't appear to do anything at all ... – Inbreedbash
you can control the prompt solely by specifying it in thePS1
variable, so if you override it""
from the command line, the prompt should disappear (confirming that you can design it, by changing yourPS1
environment variable). – VogeleyPS1 bash
. It gives you tons of tutorials and alike. – Vogeley