cd- is no longer available.How do I return to the previous directory?

Asked 2 years ago, Updated 2 years ago, 110 views

After several directory moves,
cd-
I will run , but after all the settings I have been fiddling with, I can no longer use them.

-:no such file or directory
So I think the last directory is not cached, but I don't know the solution.

How do I get back to the last directory?

command-line zsh

2022-09-30 17:32

1 Answers

Wasn't setopt autopushd set before?

Try adding setopt autopushd to through/.zshrc and so on, and then starting zsh.


2022-09-30 17:32

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.