Stop doing colors in cmder

This commit is contained in:
John Doty 2014-04-24 16:10:46 -07:00
parent 403989820e
commit 6536a4885f

View file

@ -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.