I often want to jump to a path, do something, and get back. This is easily achieved by using
However, if I jump to the path, cd around a little, then want to "get back",
cd - would no longer work.
It would also not work if I started in dir
a, wanted to jump to
b, then to
c, then "back" (to
b) and "back" (to
Having to remember the name of where I want to jump back to (so I can do
z a instead of "jump back") is no fun.
popd are built exactly to help you navigate through a stack of directories. I was wondering, if I could integrate the partial matching behavior of
There seems to be no command line option in
z or autojump which would give the target directory instead of cd'ing to it, otherwise I'd try
pushd $(z ...).