Skip to content

Instantly share code, notes, and snippets.

View B4Art's full-sized avatar
🏠
Working from home

Bart van den Donk B4Art

🏠
Working from home
  • Amersfoort, The Netherlands
View GitHub Profile
@B4Art
B4Art / ps-colours.ps1
Last active December 14, 2020 12:56 — forked from timabell/ps-colours.ps1
output all the colour combinations for text/background in powershell
# output all the colour combinations for text/background
# http://stackoverflow.com/a/41954792/10245
$colors = [enum]::GetValues([System.ConsoleColor]) |
Select-Object @{N='ColorObject';E={$_}},
@{N='ColorName'; E={
If ($_.ToString().substring(0,3) -eq 'Dar' ){
$_.ToString().Substring(4) + 'DARK'
} else {
$_.ToString()
}