Merge branch 'master' of github.com:DeCarabas/Init-Files

This commit is contained in:
John Doty 2013-07-07 00:20:27 -07:00
commit 603ecf1866

View file

@ -49,19 +49,29 @@ function prompt
{ {
$ok = $? $ok = $?
if (!$global:SolarizedColors) if ($Host.Name -eq "ConsoleHost")
{ {
Set-SolarizedColors -Dark if (!$global:SolarizedColors)
$global:SolarizedColors = $true {
} Set-SolarizedColors -Dark
$global:SolarizedColors = $true
}
# Our "theme", as it were. Note that we assume the use of the # Our "theme", as it were. Note that we assume the use of the
# solarized colors. # solarized colors.
# #
$cdelim = [ConsoleColor]::DarkCyan $cdelim = [ConsoleColor]::DarkCyan
$chost = [ConsoleColor]::DarkGreen $chost = [ConsoleColor]::DarkGreen
$cloc = $csym = [ConsoleColor]::DarkCyan $cloc = $csym = [ConsoleColor]::DarkCyan
if (-not $ok) { $csym = [ConsoleColor]::DarkRed; } if (-not $ok) { $csym = [ConsoleColor]::DarkRed; }
}
else
{
$cdelim = [ConsoleColor]::Gray
$chost = [ConsoleColor]::Green
$cloc = $csym = [ConsoleColor]::Gray
if (-not $ok) { $csym = [ConsoleColor]::Red; }
}
write-host "$([char]0x0A7) " -n -f $csym write-host "$([char]0x0A7) " -n -f $csym
write-host ([net.dns]::GetHostName()) -n -f $chost write-host ([net.dns]::GetHostName()) -n -f $chost