How to Permanently change PowerShell and CMD prompts

Viewed 1923

PowerShell prompt can be changed by calling

Function prompt{"new_prompt "}

and on the cmd prompt can be changed by calling

prompt $g$g$s

Once the current window is closed all the changes are gone and one will have to change them again when opening new instances of PowerShell or cmd. How can one make these changes permanent?

2 Answers
Related