mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-02-21 02:55:37 -08:00
fix(pwsh): export Start-Utf8Process as global
This commit is contained in:
parent
d823b55e90
commit
d77e824585
|
@ -1,4 +1,4 @@
|
|||
function Start-Utf8Process
|
||||
function global:Start-Utf8Process
|
||||
{
|
||||
param(
|
||||
[string] $FileName,
|
||||
|
@ -18,20 +18,6 @@ function Start-Utf8Process
|
|||
return $Process.StandardOutput.ReadToEnd() + $Process.StandardError.ReadToEnd()
|
||||
}
|
||||
|
||||
# Copyright (c) 2016 Michael Kelley
|
||||
# https://github.com/kelleyma49/PSFzf/issues/71
|
||||
function script:Invoke-Prompt()
|
||||
{
|
||||
$previousOutputEncoding = [Console]::OutputEncoding
|
||||
[Console]::OutputEncoding = [Text.Encoding]::UTF8
|
||||
|
||||
try {
|
||||
[Microsoft.PowerShell.PSConsoleReadLine]::InvokePrompt()
|
||||
} finally {
|
||||
[Console]::OutputEncoding = $previousOutputEncoding
|
||||
}
|
||||
}
|
||||
|
||||
$env:POWERLINE_COMMAND = "oh-my-posh"
|
||||
$env:CONDA_PROMPT_MODIFIER = $false
|
||||
|
||||
|
|
Loading…
Reference in a new issue