diff --git a/src/shell/scripts/omp.ps1 b/src/shell/scripts/omp.ps1 index 116596b1..5cd66ad0 100644 --- a/src/shell/scripts/omp.ps1 +++ b/src/shell/scripts/omp.ps1 @@ -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