Merge branch 'master' of github.com:DeCarabas/Init-Files
This commit is contained in:
commit
603ecf1866
1 changed files with 22 additions and 12 deletions
|
|
@ -49,20 +49,30 @@ function prompt
|
|||
{
|
||||
$ok = $?
|
||||
|
||||
if (!$global:SolarizedColors)
|
||||
if ($Host.Name -eq "ConsoleHost")
|
||||
{
|
||||
Set-SolarizedColors -Dark
|
||||
$global:SolarizedColors = $true
|
||||
}
|
||||
if (!$global:SolarizedColors)
|
||||
{
|
||||
Set-SolarizedColors -Dark
|
||||
$global:SolarizedColors = $true
|
||||
}
|
||||
|
||||
# Our "theme", as it were. Note that we assume the use of the
|
||||
# solarized colors.
|
||||
#
|
||||
$cdelim = [ConsoleColor]::DarkCyan
|
||||
$chost = [ConsoleColor]::DarkGreen
|
||||
$cloc = $csym = [ConsoleColor]::DarkCyan
|
||||
if (-not $ok) { $csym = [ConsoleColor]::DarkRed; }
|
||||
|
||||
# Our "theme", as it were. Note that we assume the use of the
|
||||
# solarized colors.
|
||||
#
|
||||
$cdelim = [ConsoleColor]::DarkCyan
|
||||
$chost = [ConsoleColor]::DarkGreen
|
||||
$cloc = $csym = [ConsoleColor]::DarkCyan
|
||||
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 ([net.dns]::GetHostName()) -n -f $chost
|
||||
write-host ' {' -n -f $cdelim
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue