From 1958c1eabfae0a4db85584df7dc714819e7015bb Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Tue, 11 Jun 2024 08:49:00 +0100 Subject: [PATCH] Tweak PowerShell colors for light console --- roles/home-cli/files/Microsoft.PowerShell_profile.ps1 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/roles/home-cli/files/Microsoft.PowerShell_profile.ps1 b/roles/home-cli/files/Microsoft.PowerShell_profile.ps1 index cc36b91..8aecbd0 100644 --- a/roles/home-cli/files/Microsoft.PowerShell_profile.ps1 +++ b/roles/home-cli/files/Microsoft.PowerShell_profile.ps1 @@ -95,7 +95,14 @@ Remove-Variable -Name nvim $OutputEncoding = [System.Text.Encoding]::UTF8 Set-PSReadLineOption -BellStyle None -Set-PSReadLineOption -Color @{Command = 'Red'} +Set-PSReadLineOption -Color @{ + Command = [ConsoleColor]::DarkYellow + Comment = [ConsoleColor]::Green + Keyword = [ConsoleColor]::DarkGreen + ListPrediction = [ConsoleColor]::Yellow + Number = [ConsoleColor]::DarkGray + Variable = [ConsoleColor]::DarkGreen +} Set-PSReadLineOption -EditMode Emacs Set-PSReadLineKeyHandler -Key Tab -Function Complete Set-PSReadLineKeyHandler -Key UpArrow -ScriptBlock {