Advertisement
Guest User

Untitled

a guest
Aug 25th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. #PSReadline theme to match VSCode editor colors
  2. if ($env:TERM_PROGRAM -eq 'VSCode' -or $env:WT_SESSION) {
  3. if ($psedition -eq 'core') {
  4. $ansiesc = "`e"
  5. } else {
  6. $ansiesc = [char]0x1b
  7. }
  8.  
  9. Set-PSReadlineOption -Colors @{
  10. Command = "$($ansiesc)[93m"
  11. Comment = "$($ansiesc)[32m"
  12. ContinuationPrompt = "$($ansiesc)[37m"
  13. Default = "$($ansiesc)[37m"
  14. Emphasis = "$($ansiesc)[96m"
  15. Error = "$($ansiesc)[31m"
  16. Keyword = "$($ansiesc)[35m"
  17. Member = "$($ansiesc)[96m"
  18. Number = "$($ansiesc)[35m"
  19. Operator = "$($ansiesc)[37m"
  20. Parameter = "$($ansiesc)[37m"
  21. Selection = "$($ansiesc)[37;46m"
  22. String = "$($ansiesc)[33m"
  23. Type = "$($ansiesc)[34m"
  24. Variable = "$($ansiesc)[96m"
  25. }
  26.  
  27. #Verbose Text should be distinguishable, some hosts set this to yellow
  28. $host.PrivateData.ErrorForegroundColor = 'Red'
  29. $host.PrivateData.VerboseForegroundColor = 'Cyan'
  30. $host.PrivateData.WarningForegroundColor = 'Yellow'
  31. $host.PrivateData.DebugForegroundColor = 'Magenta'
  32. $host.PrivateData.ProgressForegroundColor = 'Yellow'
  33. $host.PrivateData.ProgressBackgroundColor = 'DarkCyan'
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement