diff --git a/WindowsPowershell/Profile.ps1 b/WindowsPowershell/Profile.ps1 index 80ee931..711ea79 100644 --- a/WindowsPowershell/Profile.ps1 +++ b/WindowsPowershell/Profile.ps1 @@ -45,18 +45,24 @@ function shorten-path([string] $path) $global:SolarizedColors = $false +if ($Host.Name -eq "ConsoleHost") +{ + Set-SolarizedColors -Dark + $global:SolarizedColors = $true + + # Doing this screws up the colors in the window, and the only way to + # make it look remotely pretty is to do this. + # + cls +} + + function prompt { $ok = $? if ($Host.Name -eq "ConsoleHost") { - if (!$global:SolarizedColors) - { - Set-SolarizedColors -Dark - $global:SolarizedColors = $true - } - # Our "theme", as it were. Note that we assume the use of the # solarized colors. # @@ -293,4 +299,4 @@ function Connect-XboxHostKD() { $addr = xbconnect -b windbg -k "net:port=,target=$addr" -} \ No newline at end of file +}