how to use DIRSTACK #451
-
in the latest release I am guessing this is something like but I am unable to use them :( ~/video ❯ z +n
zoxide: no match found
~/video ❯ zoxide +n
error: Found argument '+n' which wasn't expected, or isn't valid in this context
USAGE:
zoxide <SUBCOMMAND>
For more information try --help can someone help me out with this one. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Now, you can do the same thing with |
Beta Was this translation helpful? Give feedback.
z
tries to act like a superset ofcd
on most shells. In zsh, you can use thepushd
andpopd
commands to create a dirstack, which you can then navigate using these commands. For example:cd -3
goes 3 directories back.cd +2
goes 2 directories forward.Now, you can do the same thing with
z
, i.e.z -3
andz +2
. The reason for adding this to zsh is so that people who replace theircd
command entirely with zoxide (zoxide init zsh --cmd cd
) don't lose out on any features from the builtincd
.