Skip to content

PowerShell

Leon edited this page Apr 4, 2021 · 2 revisions

For Windows, I suggest to

  • set the terminal color scheme (alacritty example provided), and
  • make sure the terminal of choice is launching the desired powershell executble (for alacritty, set the option in alacritty.yml, e.g.
    shell:
        program: pwsh
    
    for PowerShell 7), and
  • set the following color options in your powershell profile (read this for more info):
    Set-PSReadlineOption -Colors @{
       "Command"="`e[37m";
       "Comment"="`e[93m";
       "ContinuationPrompt"="`e[37m";
       "Default"="`e[37m";
       "Emphasis"="`e[36m";
       "Error"="`e[91m";
       "Keyword"="`e[31m";
       "Member"="`e[37m";
       "Number"="`e[37m";
       "Operator"="`e[31m";
       "Parameter"="`e[37m";
       "InlinePrediction"="`e[94m";
       "Selection"="`e[30;47m";
       "String"="`e[34m";
       "Type"="`e[37m";
       "Variable"="`e[95m";
    }
    
Clone this wiki locally