DigitalEye DigitalEye - 1 year ago 147
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.

Answer Source

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

@echo off
cmd /k prompt $g
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download