Sunday, October 23, 2016

Setting the default prompt for command prompts

The prompt can be changed for the current command prompt window with the prompt command. If you want to persist the change, you need to set the PROMPT environment variable. This can be done from the command line with setx. This command sets the default prompt to a single > sign:

setx PROMPT $g

New command prompts will then have the new prompt. To reset the prompt, you can delete that environment variable with setx PROMPT "".

No comments:

Post a Comment