What is the zsh equivalent of "pushd -n" in bash?
2
votes
2
answers
397
views
I want to push a directory onto the directory stack in order to refer to it using "tilde shorthand" (eg.
~1
refers to the second entry in the directory list), but I don't want to actually switch to the directory. In bash, it seems this can be done using the -n
flag to pushd
.
What's the equivalent in zsh?
Asked by chb
(699 rep)
Nov 27, 2021, 01:40 AM
Last activity: Nov 27, 2021, 07:05 PM
Last activity: Nov 27, 2021, 07:05 PM