How to emulate pushd
/popd
#710
Unanswered
martin-braun
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pushd
/popd
#710
-
Before considering
z
, I always did this:The reason is simply, I would keep the navigation history and can call
pd
multiple times to pop directories off again. I will always be in a branch that I can move up again. Very useful for me.Now I'm missing something like my
pd
forz
. I'm aware ofz -
, but callingz -
multiple times will alternate back and forth (like the originalcd -
), because it will put the last directory onto the stack when navigating back. This is not what I want, I want a dir stack by default that I can pop the last directory off usingpd
.I also tried
z -1
, but I getzoxide: no match found
. Could somebody please help me out on this one?Beta Was this translation helpful? Give feedback.
All reactions