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.
I think it would be ideal to loop in
Set-ZLocation
instead of onlycd
in this code. This way we get thePush-Location
and removal of "bad" path code benefits. Then when we use thefz
alias andz -
it will appropriately pop back like native usage ofz
.https://github.com/kelleyma49/PSFzf/blob/a5a7850e54b59c4d6e039af34607a8cd95b98d74/PSFzf.Functions.ps1#L201