diff --git a/base/profile.d/Style.ps1 b/base/profile.d/Style.ps1 index 71d4127..3b90274 100644 --- a/base/profile.d/Style.ps1 +++ b/base/profile.d/Style.ps1 @@ -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' )