kelleyma49 / PSFzf

A PowerShell wrapper around the fuzzy finder fzf
MIT License
795 stars 36 forks source link

FZF_DEFAULT_COMMAND ignored #21

Closed thorstenkampe closed 5 years ago

thorstenkampe commented 5 years ago

[latest PSFzf and PowerShell 6.2.0-preview.2 on Windows]

I suspected because of similar timings for different FZF_DEFAULT_COMMAND that PSFzf ignores that environment variable. This seems to confirm the problem:

pwsh> $Env:FZF_DEFAULT_COMMAND = 'does_not_exist'
pwsh> fzf
>   < [$FZF_DEFAULT_COMMAND failed]

pwsh> Invoke-FuzzySetLocation
>   < 2299/2299
kelleyma49 commented 5 years ago

Thanks for reporting. Invoke-FuzzySetLocation should respect FZF_DEFAULT_COMMAND if it's set.

Try https://www.powershellgallery.com/packages/PSFzf/1.1.20 to see if your problem is resolved.