Make comands red in PowerShell

This commit is contained in:
Anthony Rose 2024-06-10 07:31:07 +01:00
parent 8cde780721
commit 5f4f5f9877

View file

@ -94,9 +94,10 @@ Remove-Variable -Name nvim
# Force UTF-8 output.
$OutputEncoding = [System.Text.Encoding]::UTF8
Set-PSReadlineOption -BellStyle None
Set-PSReadlineOption -EditMode Emacs
Set-PSReadlineKeyHandler -Key Tab -Function Complete
Set-PSReadLineOption -BellStyle None
Set-PSReadLineOption -Color @{Command = 'Red'}
Set-PSReadLineOption -EditMode Emacs
Set-PSReadLineKeyHandler -Key Tab -Function Complete
Set-PSReadLineKeyHandler -Key UpArrow -ScriptBlock {
[Microsoft.PowerShell.PSConsoleReadLine]::HistorySearchBackward()
[Microsoft.PowerShell.PSConsoleReadLine]::EndOfLine()