Skip to content

Commit

Permalink
fix(pwsh): invoke executable correctly on import
Browse files Browse the repository at this point in the history
  • Loading branch information
JanDeDobbeleer committed Sep 21, 2020
1 parent 56fc372 commit 2fee623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/powershell/go-my-posh/go-my-posh.psm1
Expand Up @@ -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 {
Expand Down

0 comments on commit 2fee623

Please sign in to comment.