Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

In zsh when I type .. and Press Tab I would like it to expand to ../. At the moment, zsh looks for a directory with two periods in the name and expands to that (such as .emacs.d).

Which option affects this kind of behaviour?

share|improve this question
up vote 5 down vote accepted

From, the magic command is:

zstyle ':completion:*' special-dirs true

(The link is about OS X, but I just got it to work on Ubuntu Linux 10.10 as well.)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.