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 --helpcan 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.
ztries to act like a superset ofcdon most shells. In zsh, you can use thepushdandpopdcommands to create a dirstack, which you can then navigate using these commands. For example:cd -3goes 3 directories back.cd +2goes 2 directories forward.Now, you can do the same thing with
z, i.e.z -3andz +2. The reason for adding this to zsh is so that people who replace theircdcommand entirely with zoxide (zoxide init zsh --cmd cd) don't lose out on any features from the builtincd.