Yori doesn't handle PROMPT correctly?
Closed this issue · 2 comments
I have the following prompt:
PROMPT=[$E[92m$T$H$H$H$E[39m ~ $E[95m$P$E[39m]$+$_$$
In yori it looks like:
Prompt config is documented here: https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/prompt
Yori uses a different environment variable for prompt, which is documented at http://www.malsmith.net/yori/guide/#env_yoriprompt
The issue with trying to use the same variable for both is that CMD will not understand any extensions that Yori tries to add, and this is an area that I wanted to do substantially better than CMD. Yori's prompts can include backquotes to capture arbitrary output of processes, and will expand environment variables. CMD can't do these things, so trying to use one variable would result in garbage from CMD.
Fair enough, thanks for the link to the docs!