mirror of
https://github.com/cmderdev/cmder.git
synced 2025-04-05 09:12:32 +08:00
This defines the default prompt variables ($PrePrompt, $PostPrompt, $CmderPrompt, and $Prompt) before running the custom scripts (user-profile.ps1 and profile.d/*.ps1), and then saves those prompt values after running the custom scripts. This gives the custom scripts and opportunity to override the prompt code blocks. This now opens the possibility for profile.d/*.ps1 scripts to affect the prompt, and also allows both user-profile.ps1 and profile.d/*.ps1 scripts to overwrite the $Prompt script block and overwrite the prompt behavior entirely.
Vendor
Third parties software & init script.