Skip to content

Commit

Permalink
Remove duplicated prefix if used first query
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Mar 1, 2024
1 parent bce7169 commit 22b4148
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Set-PSReadLineKeyHandler -Chord Ctrl+r -ScriptBlock {
if (!$command) {
return
}
[Microsoft.PowerShell.PSConsoleReadLine]::BackwardDeleteLine()
[Microsoft.PowerShell.PSConsoleReadLine]::Insert($command)
}
```
Expand Down
1 change: 1 addition & 0 deletions keybindings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ Set-PSReadLineKeyHandler -Chord Ctrl+r -ScriptBlock {
if (!$command) {
return
}
[Microsoft.PowerShell.PSConsoleReadLine]::BackwardDeleteLine()
[Microsoft.PowerShell.PSConsoleReadLine]::Insert($command)
}

0 comments on commit 22b4148

Please sign in to comment.