This takes me back to the days when everyone knew and used DOS!
There is a environment variable that controls how the prompt is displayed in the command window.
PROMPT=$P$G
You can kind of accomplish what you want, but with limitations. For instance, if you go to a command window and type:
C:\>prompt ~$P[space]
(don't type the C:\>
and [space]
is an actual space), your prompt will change to:
~c:\[space]
You can type prompt /?
to see all of the available options. Once you have found a combination that you like, edit the environment variable and it will be set for all future command windows. The biggest limitation is that you cannot change the backslashes to forward slashes.
As for colors, type color /?
from the command line. You can set the entire background and foreground colors, but not individual elements on the screen. That is unless you can get a copy Ansi.sys
and get Windows to load it when you open a Command Window. Here are a couple of cool links to sites that use color in the PROMPT.
I Googled ansi.sys windows 7
and found a few people that said they got it working (like here). I don't have Ansi.sys
anywhere to give it a try.