fix(pwsh): invoke executable correctly on import

This commit is contained in:
Jan De Dobbeleer 2020-09-21 07:49:34 +02:00 committed by Jan De Dobbeleer
parent 56fc37214f
commit 2fee6237b6

View file

@ -28,7 +28,7 @@ if ($IsWindows) {
[console]::OutputEncoding = New-Object System.Text.UTF8Encoding
# Not running it beforehand in the terminal will fail the prompt somehow
$poshCommand = Get-PoshCommand
Invoke-Expression -Command $poshCommand | Out-Null
& $poshCommand | Out-Null
}
function Set-PoshPrompt {