Open mcint opened 4 years ago
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
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?
@skywind3000 _ZL_CD
is ignored for cmd.exe https://github.com/skywind3000/z.lua/blob/35e1199eff62b9a9bbe345d53adc3eee13eb0628/z.lua#L2566
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.
I mostly use
pushd
(aliased asp
) in lieu ofcd
. Z does not currently capture directories accessed viapushd
.I'm looking into changing this and making a PR.