Reputation: 189
I have a problem with PowerShell on Windows 10. When ever I change the drive by drive letter or Set-Location I get a ">>" prompt randomly.
This never happened on Windows 7.
Upvotes: 0
Views: 132
Reputation: 24470
Try running the below code:
(Get-Command Prompt).Definition
This should return
"PS $($executionContext.SessionState.Path.CurrentLocation)$('>' * ($nestedPromptLevel + 1)) ";
If it doesn't, overwrite this function with your own defintition:
Function Prompt {
"PS $($executionContext.SessionState.Path.CurrentLocation)$('>' * ($nestedPromptLevel + 1)) ";
}
Upvotes: 1