Currently PowerShell's prompt has hard-coded " on the code (self._addline('Function prompt {"%s"}' % self.settings.prompt)) which prevents more advanced prompt commands to be used, for example:
Add a configuration value to determine whether to add " to the PS prompt function contents, this way maintains compatibility with previous configurations but users that want more out of the default prompt can customize it further.
Issue
Currently PowerShell's prompt has hard-coded
"
on the code (self._addline('Function prompt {"%s"}' % self.settings.prompt)
) which prevents more advanced prompt commands to be used, for example:(from https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_prompts?view=powershell-7)
Solution (?)
Add a configuration value to determine whether to add
"
to the PS prompt function contents, this way maintains compatibility with previous configurations but users that want more out of the default prompt can customize it further.