Skip to content
Discussion options

You must be logged in to vote

Add this to your .zshrc file:

zstyle ':completion:*:cd:*' tag-order  '! (|*-)directories' -

Note: If you're using OhMyZsh, you need to add the line after sourcing OMZ, because otherwise, OMZ will override it.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Jayy001
Comment options

@marlonrichert
Comment options

@Jayy001
Comment options

@marlonrichert
Comment options

@rodhash
Comment options

Answer selected by marlonrichert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants