Skip to content

Commit 9fa4793

Browse files
committed
remove unused handler
1 parent 443f3b0 commit 9fa4793

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

PSReadlineProfile.ps1

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -478,24 +478,6 @@ Set-PSReadLineKeyHandler -Key Alt+j `
478478
[Microsoft.PowerShell.PSConsoleReadLine]::InvokePrompt()
479479
}
480480

481-
Set-PSReadLineOption -CommandValidationHandler {
482-
param([System.Management.Automation.Language.CommandAst]$CommandAst)
483-
484-
switch ($CommandAst.GetCommandName())
485-
{
486-
'git' {
487-
$gitCmd = $CommandAst.CommandElements[1].Extent
488-
switch ($gitCmd.Text)
489-
{
490-
'cmt' {
491-
[Microsoft.PowerShell.PSConsoleReadLine]::Replace(
492-
$gitCmd.StartOffset, $gitCmd.EndOffset - $gitCmd.StartOffset, 'commit')
493-
}
494-
}
495-
}
496-
}
497-
}
498-
499481
# ghq + fzf
500482
Set-PSReadLineKeyHandler -Key Ctrl+] `
501483
-BriefDescription SelectGHQDirectory `

0 commit comments

Comments
 (0)