From b129a0e308f2c89cca09f5a1e5b617e1ad49e435 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Thu, 1 Aug 2024 20:24:45 +0100 Subject: [PATCH] Disable italics in PSReadLine autosuggestions --- profile.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/profile.ps1 b/profile.ps1 index 7feaee6..6341c7b 100644 --- a/profile.ps1 +++ b/profile.ps1 @@ -63,6 +63,8 @@ Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete # Autosuggestion bindings for PSReadLine 2.1.0+ Set-PSReadLineKeyHandler -Chord "Ctrl+p" -Function ForwardChar Set-PSReadLineKeyHandler -Chord "Ctrl+o" -Function ForwardWord +# Use grey but not italic for autosuggestion highlights +Set-PSReadLineOption -Colors @{ InlinePrediction = "$([char]0x1b)[38;5;238m" } # Change cursor shape based on what Vi mode the line editor is in. # Tested and works with PowerShell 5.1