'Powershell Color Schemes?
Is there a place where I can find Powershell Color Schemes that people have already built? Something like https://github.com/lysyi3m/osx-terminal-themes, but for Windows Powershell instead of OSX.
I did find this one: https://github.com/Segaso/MonokaiTheme, but I'm confused as to where I find this "Tools". When I right click on the top of any PowerShell window, all I see is this:
And this is all I see under properties:
Solution 1:[1]
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.
Solution 2:[2]
Its easy. You can run these commands in powershell. This is a 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 = $bckgrnd
Clear-Host
If you want to have your own scheme you can choose colors as you wish.
To get the list of the colors. Run below command.
get-help write-host
You will get all colors available for powershell.
Solution 3:[3]
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
Solution 4:[4]
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Community |
Solution 2 | |
Solution 3 | as - if |
Solution 4 | Bonneau21 |