How can I reset the powershell colors

后端 未结 10 1296
梦毁少年i
梦毁少年i 2021-01-30 20:08

I changed the colors of the powershell and now I can\'t change the color of the input text, is always yellow.

I changed the color of the background and

10条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-30 20:52

    I found this worked. It's the answer from user 577111 I think. We need to put all this into PS.

    Set-PSReadLineOption -Colors @{
    ### Use a ConsoleColor enum 
    "Error" = [ConsoleColor]::DarkRed
    ### 24 bit color escape sequence 
    "String" = "$([char]0x1b)[38;5;100m"
    ### RGB value 
    "Command" = "#8181f7" }
    

提交回复
热议问题