Make comands red in PowerShell
This commit is contained in:
parent
8cde780721
commit
5f4f5f9877
1 changed files with 4 additions and 3 deletions
|
@ -94,9 +94,10 @@ Remove-Variable -Name nvim
|
||||||
# Force UTF-8 output.
|
# Force UTF-8 output.
|
||||||
$OutputEncoding = [System.Text.Encoding]::UTF8
|
$OutputEncoding = [System.Text.Encoding]::UTF8
|
||||||
|
|
||||||
Set-PSReadlineOption -BellStyle None
|
Set-PSReadLineOption -BellStyle None
|
||||||
Set-PSReadlineOption -EditMode Emacs
|
Set-PSReadLineOption -Color @{Command = 'Red'}
|
||||||
Set-PSReadlineKeyHandler -Key Tab -Function Complete
|
Set-PSReadLineOption -EditMode Emacs
|
||||||
|
Set-PSReadLineKeyHandler -Key Tab -Function Complete
|
||||||
Set-PSReadLineKeyHandler -Key UpArrow -ScriptBlock {
|
Set-PSReadLineKeyHandler -Key UpArrow -ScriptBlock {
|
||||||
[Microsoft.PowerShell.PSConsoleReadLine]::HistorySearchBackward()
|
[Microsoft.PowerShell.PSConsoleReadLine]::HistorySearchBackward()
|
||||||
[Microsoft.PowerShell.PSConsoleReadLine]::EndOfLine()
|
[Microsoft.PowerShell.PSConsoleReadLine]::EndOfLine()
|
||||||
|
|
Loading…
Reference in a new issue