Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tab completion does not work for .. (dir up) #1083

Closed
dpkshrma opened this issue Feb 13, 2016 · 3 comments
Closed

tab completion does not work for .. (dir up) #1083

dpkshrma opened this issue Feb 13, 2016 · 3 comments

Comments

@dpkshrma
Copy link

On a usual bash terminal typing .. , and hitting tab changes it to '../' which is very convenient. On pressing tab second time, bash looks up in parent directory.
But on prezto, it says -- no matches found --. Any chances prezto can re-enable that feature?

@sorin-ionescu
Copy link
Owner

I cannot reproduce. It works as expected. I type ../[tab], and it works fine.

@Graunephar
Copy link

I think the OP just meant ".."[tap] not "../" [tap]

At lest i'm very annoyed that I cannot just type" .." and then hit tap, but have to type"../"

Not sure if this specific to prezto, but if there is a fix I would love to know about it.

@Graunephar
Copy link

For anyone else finding this issue via Google as I did, searching for the answer to "autoslashing" the dot dot dir.

The answer is described here: ohmyzsh/ohmyzsh#3775

Just set the following in your .zrpreztorc file:
zstyle ':completion:*' special-dirs true

Worked for me :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants