PSFzf
PSFzf copied to clipboard
`Invoke-FuzzyZLocation` - Use `Set-ZLocation` Instead of `cd`
I think it would be ideal to loop in Set-ZLocation
instead of only cd
in this code. This way we get the Push-Location
and removal of "bad" path code benefits. Then when we use the fz
alias and z -
it will appropriately pop back like native usage of z
.
https://github.com/kelleyma49/PSFzf/blob/a5a7850e54b59c4d6e039af34607a8cd95b98d74/PSFzf.Functions.ps1#L201