mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-27 03:49:40 -08:00
fix(pwsh): invoke executable correctly on import
This commit is contained in:
parent
56fc37214f
commit
2fee6237b6
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue