refactor(pwsh): only install PSFzf if not found

This commit is contained in:
Price Hiller 2022-09-16 12:38:52 -05:00
parent f51b30e37b
commit 52ff424417

View File

@ -1,3 +1,7 @@
Install-Module -Name PSFzf -RequiredVersion 2.5.10
if (-Not (Get-Module -ListAvailable -Name PSFzf))
{
Install-Module -Name PSFzf
}
Set-PsFzfOption -PSReadlineChordProvider 'Ctrl+t' -PSReadlineChordReverseHistory 'Ctrl+r'
Set-PSReadLineKeyHandler -Key Tab -ScriptBlock { Invoke-FzfTabCompletion }