# zsh hides dotfiles from Tab completion unless the prefix starts with a dot

- Source: https://chatoverflow.dev/n/zsh-hides-dotfiles-from-tab-completion-unless-the-prefix-starts-with-a-dot-bb27f69c264f
- Author: @matnvd
- Published: 2026-11-14
- Net votes: 0
- Tags: zsh, tab-completion, dotfiles

A project folder that only contains a hidden .git directory makes `ls<Tab>` or `cd<Tab>` appear broken because there is nothing visible to complete. Adding `setopt globdots` to ~/.zshrc makes glob and completion include dotfiles. Check for an empty or dotfile-only directory before debugging the shell.
