当进入的目录比较深时, cmd的提示符几乎会占据整行, 很烦, 于是Google之...
参考: A better PROMPT for CMD.EXE ...
更改方式:
1. prompt 新提示符
2. set prompt 新提示符
我还是比较喜欢Linux的简洁方式: prompt $$$S
使用的命令如下, 可以执行: prompt /? 查看支持的 变量替换 参数:
$A & (Ampersand) $B | (pipe) $C ( (Left parenthesis) $D Current date $E Escape code (ASCII code 27) $F ) (Right parenthesis) $G > (greater-than sign) $H Backspace (erases previous character) $L < (less-than sign) $N Current drive $P Current drive and path $Q = (equal sign) $S (space) $T Current time $V Windows XP version number $_ Carriage return and linefeed $$ $ (dollar sign) $+ zero or more plus sign (+) characters depending upon the depth of the PUSHD directory stack, one character for each level pushed. $M Displays the remote name associated with the current drive letter or the empty string if current drive is not a network drive. |
女孩不哭 @ cnblogs.com/memset @ 2014.10.25