mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-09 20:44:03 -08:00
fix(pwsh): run command once on module import
This commit is contained in:
parent
18746bdc4b
commit
87325c5a05
|
@ -26,6 +26,9 @@ if (!$IsWindows) {
|
|||
if ($IsWindows) {
|
||||
# When this is not set, outputted fonts aren't rendered correctly in some terminals for the prompt function
|
||||
[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
|
||||
}
|
||||
|
||||
function Set-PoshPrompt {
|
||||
|
|
Loading…
Reference in a new issue