mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-16 05:38:27 -08:00
parent
c59c876b87
commit
d6b56de4c1
|
@ -37,6 +37,13 @@ New-Module -Name "oh-my-posh-core" -ScriptBlock {
|
|||
[string[]]$Arguments = @()
|
||||
)
|
||||
|
||||
if ($ExecutionContext.SessionState.LanguageMode -eq "ConstrainedLanguage") {
|
||||
$_arguments = $Arguments -join ' '
|
||||
$standardOut = Invoke-Expression "& $FileName $_arguments 2>&1"
|
||||
$standardOut -join "`n"
|
||||
return
|
||||
}
|
||||
|
||||
$Process = New-Object System.Diagnostics.Process
|
||||
$StartInfo = $Process.StartInfo
|
||||
$StartInfo.FileName = $FileName
|
||||
|
|
Loading…
Reference in a new issue