From cec69e915a0a775557f107ae2d39ed2b345c2505 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Fri, 16 Sep 2022 12:26:01 -0500 Subject: [PATCH] feat(pwsh): add fzf completion bindings --- dots/.config/powershell/Microsoft.PowerShell_profile.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dots/.config/powershell/Microsoft.PowerShell_profile.ps1 b/dots/.config/powershell/Microsoft.PowerShell_profile.ps1 index d52928c9..a66364c1 100644 --- a/dots/.config/powershell/Microsoft.PowerShell_profile.ps1 +++ b/dots/.config/powershell/Microsoft.PowerShell_profile.ps1 @@ -1 +1,3 @@ -Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete +Install-Module -Name PSFzf -RequiredVersion 2.5.10 +Set-PsFzfOption -PSReadlineChordProvider 'Ctrl+t' -PSReadlineChordReverseHistory 'Ctrl+r' +Set-PSReadLineKeyHandler -Key Tab -ScriptBlock { Invoke-FzfTabCompletion }