EDIT: This question already has an answer here:
Please mark it as duplicate, thanks.
I know how to decorate $PS1
in Linux, but I wonder if I can change the color of prompt string in Windows cmd.exe
. I know there is a $PROMPT
env var to change format, but I don't see any way to change its color.
I am using cmder
. So if it is possible with tweaking this, it is OK.
I just want to decorate the prompt string, without change the color all the text in the console; it is to distinguish the output with the input line. Say, I have 300 lines of output, and when I scroll back, I cannot see from where I start.
I have posted another question here, and made it in Linux. It is like this: