How can I shorten the path of a DOS prompt?

前端 未结 4 763
春和景丽
春和景丽 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条回答
  •  猫巷女王i
    2020-12-23 10:43

    To remove the path from the prompt use 'prompt $g' which will just show the chevron. You can then use the 'cd' command anytime to see the directory you are in. E.g.

    C:\Windows\System32\drivers\etc>prompt $g
    >
    >cd
    C:\Windows\System32\drivers\etc
    
    >
    

提交回复
热议问题