DigitalEye DigitalEye - 1 month ago 13
Bash Question

.bashrc equivalent for windows cmd shell?

Is there a .bashrc like file that Windows cmd shell reads on start-up?

I'd like to set a shorter prompt, the default prompt shows the full path to the current directory and it gets messy when I descend down several levels of sub-directories. Currently, I'm manually calling the

PROMPT
command whenever the displayed path gets too long. It'll be nice to set it automatically.

Answer

You can use a batch file to launch a cmd prompt:

@echo off
cmd /k prompt $g
Comments