=Fixed oh-my-posh style verification for non Windows systems
This commit is contained in:
parent
499a86baa6
commit
ac10608cc0
|
@ -1,4 +1,6 @@
|
||||||
$global:IsOutputANSICompatible = (
|
$global:IsOutputANSICompatible = (
|
||||||
|
$PSVersionTable.Platform -eq "Unix"
|
||||||
|
) -or (
|
||||||
([int]((Get-CimInstance -ClassName Win32_OperatingSystem).Version -split '\.')[0]) -ge 10
|
([int]((Get-CimInstance -ClassName Win32_OperatingSystem).Version -split '\.')[0]) -ge 10
|
||||||
) -or (
|
) -or (
|
||||||
($env:ConEmuANSI -eq 'ON') -and ($Host.Name -eq 'ConsoleHost' )
|
($env:ConEmuANSI -eq 'ON') -and ($Host.Name -eq 'ConsoleHost' )
|
||||||
|
|
Loading…
Reference in New Issue