=Fixed oh-my-posh style verification for non Windows systems

This commit is contained in:
lksz 2021-04-25 13:03:16 -04:00
parent 499a86baa6
commit ac10608cc0
1 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,6 @@
$global:IsOutputANSICompatible = (
$PSVersionTable.Platform -eq "Unix"
) -or (
([int]((Get-CimInstance -ClassName Win32_OperatingSystem).Version -split '\.')[0]) -ge 10
) -or (
($env:ConEmuANSI -eq 'ON') -and ($Host.Name -eq 'ConsoleHost' )