fix(pwsh): replace double qoutes in command

resolves #1963
This commit is contained in:
Jan De Dobbeleer 2022-03-22 07:51:29 +01:00 committed by Jan De Dobbeleer
parent 3c0c350564
commit 19b8cf2cf8

View file

@ -178,6 +178,7 @@ function global:Enable-PoshTooltips {
$command = $null
$cursor = $null
[Microsoft.PowerShell.PSConsoleReadLine]::GetBufferState([ref]$command, [ref]$cursor)
$command = $command -replace "`"", "'"
$standardOut = @(&$omp prompt print tooltip --pwd="$cleanPWD" --pswd="$cleanPSWD" --config="$config" --command="$command" 2>&1)
Write-Host $standardOut -NoNewline
$host.UI.RawUI.CursorPosition = $position