flutter_ecommerce_app icon indicating copy to clipboard operation
flutter_ecommerce_app copied to clipboard

`pushd` not used in input

Open mcint opened this issue 5 years ago • 4 comments

I mostly use pushd (aliased as p) in lieu of cd. Z does not currently capture directories accessed via pushd.

I'm looking into changing this and making a PR.

mcint avatar Apr 07 '20 03:04 mcint

read the manual plz:

https://github.com/skywind3000/z.lua#options

There is a _ZL_CD environment variable can be used to specify cd command:

export _ZL_CD=pushd

skywind3000 avatar Apr 07 '20 10:04 skywind3000

regarding this - I use both in different circumstances, but I'd like z.lua to capture for both. Is there any way to allow for that?

strazto avatar Sep 13 '20 10:09 strazto

@skywind3000 _ZL_CD is ignored for cmd.exe https://github.com/skywind3000/z.lua/blob/35e1199eff62b9a9bbe345d53adc3eee13eb0628/z.lua#L2566

phanirithvij avatar Jan 29 '22 06:01 phanirithvij

I'm not looking for Z to use pushd, but to recognize pushd'd paths in history.

It's not clear to me in reading the docs or your recommendation, that _ZL_CD has any effect other than Z-Lua using a different command when it changes directory. Unless I'm mistaken and we've miscommunicated, Z still won't update directory entries when I use pushd directly.

This is what I'd like to update.

mcint avatar Feb 02 '22 00:02 mcint