A user-defined find alias seems to override the Find function in ZLocation.LiteDB.psm1, unless the alias is defined with the Private option (just a theory though).
Steps to reproduce:
Add Set-Alias find Get-Item -Option None to your PS 7 profile
Open PS 7 and run some commands
Run Invoke-ZLocation and notice that none of the weights have been updated
Remove the alias and reload PS
Everything now works
Another note: if the find alias is created with the Private option, the alias stays in user scope and does not affect the function of ZLocation.
A user-defined find alias seems to override the Find function in ZLocation.LiteDB.psm1, unless the alias is defined with the Private option (just a theory though).
Steps to reproduce:
Set-Alias find Get-Item -Option None
to your PS 7 profileInvoke-ZLocation
and notice that none of the weights have been updatedAnother note: if the find alias is created with the Private option, the alias stays in user scope and does not affect the function of ZLocation.