refactor(pwsh): only install PSFzf if not found
This commit is contained in:
parent
f51b30e37b
commit
52ff424417
@ -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-PsFzfOption -PSReadlineChordProvider 'Ctrl+t' -PSReadlineChordReverseHistory 'Ctrl+r'
|
||||||
Set-PSReadLineKeyHandler -Key Tab -ScriptBlock { Invoke-FzfTabCompletion }
|
Set-PSReadLineKeyHandler -Key Tab -ScriptBlock { Invoke-FzfTabCompletion }
|
||||||
|
Loading…
Reference in New Issue
Block a user