Skip to content

Instantly share code, notes, and snippets.

@DmitriyRF
Created January 15, 2018 12:26
Show Gist options
  • Select an option

  • Save DmitriyRF/4bf3869b1f49621b79db319676ece9fd to your computer and use it in GitHub Desktop.

Select an option

Save DmitriyRF/4bf3869b1f49621b79db319676ece9fd to your computer and use it in GitHub Desktop.
PowerShell color sets
Putting these lines into your powershell profile
(a file named profile.ps1 which sits in your Documents\WindowsPowerShell\ folder
(you may have to create that folder) will remove most of the unreadable colors:
Set-PSReadlineOption -TokenKind comment -ForegroundColor white
Set-PSReadlineOption -TokenKind none -ForegroundColor white
Set-PSReadlineOption -TokenKind command -ForegroundColor white
Set-PSReadlineOption -TokenKind parameter -ForegroundColor white
Set-PSReadlineOption -TokenKind variable -ForegroundColor white
Set-PSReadlineOption -TokenKind type -ForegroundColor white
Set-PSReadlineOption -TokenKind number -ForegroundColor white
Set-PSReadlineOption -TokenKind string -ForegroundColor white
Set-PSReadlineOption -TokenKind operator -ForegroundColor white
Set-PSReadlineOption -TokenKind member -ForegroundColor white
And if you have never done it before, you'll need just once to type this in PowerShell:
Set-ExecutionPolicy RemoteSigned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment