DigitalEye DigitalEye - 6 months ago 61
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

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


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

@echo off
cmd /k prompt $g