This is not the same as this.
In my case I have a simple Cygwin installation. Up to now the prompt has been in a bold green colour (my name) followed by a bold yellow colour (location). The $ is bold on the next line.
I wanted to change the location of my Home directory so I changed cygwin.bat to this:
@echo off SETLOCAL set HOME=D:\My Documents\Software projects\Cygwin\Mike D: chdir D:\apps\cygwin64\bin bash --login -i
Line 2 and 3 here have been added by me.
This works great: I've also added a shortcut to this .bat file to
so that I can start a terminal in any location from the Explorer context menu... and "cd ~" takes me to the above "HOME" location.
But my name (green) and the location (yellow) are now unbolded. Does anyone know what this means?
thanks to David Postill, following his answers: in the (real) '~' directory:
$ grep -Irn 'PS1' --include="*profile*" 2> /dev/null $ grep -Irn 'PS1' --include="*bash*" 2> /dev/null
Both of these returned nothing at all... from this I concluded that the default prompt was coming from somewhere else... and also surmised that in the new "remote" HOME directory I could then add a PS1 value to my .bashrc.
and I got a BOLD prompt. But I then realised that the problem was not that the prompt here had been "non-bold", it was that it had been "dim" (see here).
Great, I thought, do this:
... because 0 before the semicolon is meant to be "normal" (2 is meant to be "dim")... But the prompt then came out not normal... but dim again. Grrrrrr. I give up (temporarily!).