vors / ZLocation

ZLocation is the new Jump-Location
MIT License
567 stars 29 forks source link

Set-ZLocation and Update-ZLocation break for PS 7 if the user has defined an alias for 'find' #110

Open astenlund opened 4 years ago

astenlund commented 4 years ago

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:

  1. Add Set-Alias find Get-Item -Option None to your PS 7 profile
  2. Open PS 7 and run some commands
  3. Run Invoke-ZLocation and notice that none of the weights have been updated
  4. Remove the alias and reload PS
  5. 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.

roachsinai commented 2 years ago

Same issue. Does add a zfind alias for ZLocation is a good try?