mirror of
https://github.com/elkowar/dots-of-war.git
synced 2025-02-20 04:12:14 +00:00
19 lines
No EOL
756 B
PowerShell
19 lines
No EOL
756 B
PowerShell
if ($host.Name -eq "ConsoleHost")
|
||
{
|
||
Import-Module PSReadline
|
||
Set-PSReadLineKeyHandler -Chord Control+Delete -Function BackwardKillWord
|
||
Set-PSReadLineKeyHandler -Chord Control+Backspace -Function BackwardKillWord
|
||
Set-PSReadLineKeyHandler -Chord Control+RightArrow -Function NextWord
|
||
Set-PSReadLineKeyHandler -Chord Control+LeftArrow -Function BackwardWord
|
||
|
||
Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward
|
||
Set-PSReadlineKeyHandler –Key DownArrow -Function HistorySearchForward
|
||
|
||
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete
|
||
Set-PSReadLineKeyHandler -Chord Control+c -Function RevertLine
|
||
#Set-PSReadlineKeyHandler -Chord Control+C -Function CancelLine
|
||
|
||
}
|
||
|
||
|
||
Invoke-Expression (&starship init powershell) |