From ac10608cc0d0349d0eb28ca9d79b0a3ce6955d76 Mon Sep 17 00:00:00 2001 From: lksz Date: Sun, 25 Apr 2021 13:03:16 -0400 Subject: [PATCH] =Fixed oh-my-posh style verification for non Windows systems --- base/profile.d/Style.ps1 | 2 ++ 1 file changed, 2 insertions(+) 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' )