PSFzf icon indicating copy to clipboard operation
PSFzf copied to clipboard

`Invoke-FuzzyZLocation` - Use `Set-ZLocation` Instead of `cd`

Open mattcargile opened this issue 2 years ago • 0 comments

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

mattcargile avatar Mar 22 '22 17:03 mattcargile