How can I shorten the path of a DOS prompt?

前端 未结 4 753
春和景丽
春和景丽 2020-12-23 10:21

My path on my DOS prompt is ridiculously long. How can I shorten this?

C:\\RUBY\\Ruby_Practice\\prep-work-master\\coding-test-2\\practice-problems\\spec>
         


        
4条回答
  •  北海茫月
    2020-12-23 10:33

    Right-click on My Computer|Properties. Then from the Advanced Tab, click Environment Variables, then add a new User Variable called PROMPT and set it to $p$_$+$g.

    http://www.hanselman.com/blog/ABetterPROMPTForCMDEXEOrCoolPromptEnvironmentVariablesAndANiceTransparentMultiprompt.aspx

提交回复
热议问题