如何缩短DOS提示符的路径? [英] How can I shorten the path of a DOS prompt?

查看:167
本文介绍了如何缩短DOS提示符的路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的DOS提示符下的路径太长了。如何缩短此时间?

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>


推荐答案

右键单击我的电脑|属性。然后从高级选项卡中,单击环境变量,然后添加一个名为PROMPT的新用户变量,并将其设置为$ p $ _ $ + $ g。

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

这篇关于如何缩短DOS提示符的路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆