Powershell Color Schemes? Powershell Color Schemes? windows windows

Powershell Color Schemes?


Microsoft itself released last year Windows Console Colortool

It works with/modifes the palette of any console app (cmd/Powershell/WSL-bash).

The colortool will work with any .itermcolors scheme.

download from github

enter image description here


Its easy. You can run these commands in powershell. This is custom made color scheme.

$Host.UI.RawUI.BackgroundColor = ($bckgrnd = 'Black')$Host.UI.RawUI.ForegroundColor = 'White'$Host.PrivateData.ErrorForegroundColor = 'DarkRed'$Host.PrivateData.ErrorBackgroundColor = $bckgrnd$Host.PrivateData.WarningForegroundColor = 'Yellow'$Host.PrivateData.WarningBackgroundColor = $bckgrnd$Host.PrivateData.DebugForegroundColor = 'Yellow'$Host.PrivateData.DebugBackgroundColor = $bckgrnd$Host.PrivateData.VerboseForegroundColor = 'Green'$Host.PrivateData.VerboseBackgroundColor = $bckgrnd$Host.PrivateData.ProgressForegroundColor = 'Blue'$Host.PrivateData.ProgressBackgroundColor = $bckgrndClear-Host

If you want to have your own scheme you can choose colors as you wish.

Run

get-help write-host

You will get all colors available for powershell.


I use this for the color scheme.it has solarized-dark theme. Make sure you backup your current preset with concfg export console-backup.json once you have installed scoop and concfg. For more use this link https://github.com/lukesampson/concfg