Skip to content

Instantly share code, notes, and snippets.

@trodemaster
Last active January 6, 2016 22:12
Show Gist options
  • Save trodemaster/afbb1135cb1b5a7097b9 to your computer and use it in GitHub Desktop.
Save trodemaster/afbb1135cb1b5a7097b9 to your computer and use it in GitHub Desktop.
Customize the colors used on the console when entering powercli comands
# this file needs to be placed at the following path
# C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Scripts\
Set-PSReadlineOption -TokenKind Parameter -ForegroundColor white
Set-PSReadlineOption -TokenKind Comment -ForegroundColor DarkGreen
Set-PSReadlineOption -TokenKind Keyword -ForegroundColor Green
Set-PSReadlineOption -TokenKind String -ForegroundColor DarkCyan
Set-PSReadlineOption -TokenKind Operator -ForegroundColor white
Set-PSReadlineOption -TokenKind Variable -ForegroundColor Green
Set-PSReadlineOption -TokenKind Command -ForegroundColor Yellow
Set-PSReadlineOption -TokenKind Parameter -ForegroundColor white
Set-PSReadlineOption -TokenKind Type -ForegroundColor white Gray
Set-PSReadlineOption -TokenKind Number -ForegroundColor white
Set-PSReadlineOption -TokenKind Member -ForegroundColor white
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment