From 6536a4885f8fd129bde8089c63756467558b2a57 Mon Sep 17 00:00:00 2001 From: John Doty Date: Thu, 24 Apr 2014 16:10:46 -0700 Subject: [PATCH] Stop doing colors in cmder --- WindowsPowershell/Profile.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/WindowsPowershell/Profile.ps1 b/WindowsPowershell/Profile.ps1 index c1992a1..9cffe0a 100644 --- a/WindowsPowershell/Profile.ps1 +++ b/WindowsPowershell/Profile.ps1 @@ -49,9 +49,9 @@ function shorten-path([string] $path) return ($loc -replace '\\(\.?)([^\\]{3})[^\\]*(?=\\)','\$1$2') } -$global:SolarizedColors = $true +$global:SolarizedColors = $false -if ($Host.Name -eq "ConsoleHost") +if (($Host.Name -eq "ConsoleHost") -and ("$env:CMDER_ROOT" -eq '')) { Set-SolarizedColors -Dark $global:SolarizedColors = $true @@ -66,7 +66,7 @@ function prompt { $ok = $? - if ($Host.Name -eq "ConsoleHost") + if ($global:SolarizedColors) { # Our "theme", as it were. Note that we assume the use of the # solarized colors.