DOSKEY macros (after all these years)

May 20, 2008
12,167
133
Syracuse, NY, USA
Perhaps this is well known but I hadn't thought about it in many years. They still exist! IIRC, I had just discovered doskey macros when I discovered 4DOS.

1564692834276.png
 

samintz

Scott Mintz
May 20, 2008
1,555
26
Solon, OH, USA
I have a file named autoexec.cmd in my profile directory (C:\Users\mintz) that runs whenever CMD is started. I use it to colorize my PROMPT.
It contains 1 line currently: @prompt=$e[37;44;1m[$P]$e[33;40;1m$s

I assume the HKLM entry you use is not user specific.
 
May 20, 2008
12,167
133
Syracuse, NY, USA
I have a file named autoexec.cmd in my profile directory (C:\Users\mintz) that runs whenever CMD is started. I use it to colorize my PROMPT.
It contains 1 line currently: @prompt=$e[37;44;1m[$P]$e[33;40;1m$s

I assume the HKLM entry you use is not user specific.
I put it in the user environment. Both TCC and CMD use it.
Code:
v:\> set /u prompt
$e[32;1m$p$g$s$e[0m

HKCU (the rest the same) also works. That would be user-specific.