DEV Community

Discussion on: Roll Your Own Color Scheme in Windows Terminal

Collapse
 
ankittorenzo profile image
Ankit Torenzo

The bash command you've provided in the post. I'm not able to use that command in PowerShell window. Please help.

Collapse
 
teckert profile image
Thomas Eckert

Certainly! bash refers to a particular type of shell, different from PowerShell. While I don't know how to reproduce the exact same output in PowerShell, a fair replacement is the command

[enum]::GetValues([System.ConsoleColor]) | Foreach-Object {Write-Host $_ -ForegroundColor $_}   

Which will list all colors in your editor as so:

Terminal colors shown in PowerShell