Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

It appears that I have autopushd turned on (I know I didn't turn it on) and it is rather annoying because I prefer to pick and choose when to use the directory stack. How can I turn off autopushd?

I have looked in ~/.zshrc and ~/.oh-my-zsh/oh-my-zsh.sh but couldn't find anything.

I am using oh-my-zsh on Mac OSX Lion.

share|improve this question
up vote 7 down vote accepted

It's set in ~/.oh-my-zsh/lib/directories.zsh. I would either comment it out there, or unset the options in your .zshrc after loading oh-my-zsh.

share|improve this answer

Maybe you have the dirpersistplugin from oh-my-zsh loaded or perhaps you are sourcing some kind of $ZDOTDIR/z.* at startup. Have a look at the manpage for startup files.

Just type unsetopt autopushd to disable the feature for the current session and setoptto verify that it is really unloaded.

To find the source of the problem I would run zsh -x 2> log, exit immediately and inspect the context of every pushd in the log...

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .