dots-of-war/eggs/powershell/Microsoft.PowerShell_profile.ps1

19 lines
No EOL
756 B
PowerShell
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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)