# Zsh: uncover hidden files in globs with (D)

DevFeed: [Zsh: uncover hidden files in globs with (D)](<https://devfeed.tech/articles/zsh-uncover-hidden-files-in-globs-with-d-107281.md>)

Original publisher: [Read original article](<https://adamj.eu/tech/2026/10/29/zsh-d-glob-qualifier/>)

Author: Adam Johnson

Published: 2026-10-29T00:00:00Z

Content type: article

Language: en

Sources: [Adam Johnson](<https://devfeed.tech/sources/adam-johnson.md>)

Topics: [Zsh](<https://devfeed.tech/topics/zsh.md>), [dotfiles](<https://devfeed.tech/topics/dotfiles.md>), [ls](<https://devfeed.tech/topics/ls.md>)

Tags: [configuration](<https://devfeed.tech/tags/configuration.md>), [directories](<https://devfeed.tech/tags/directories.md>), [files](<https://devfeed.tech/tags/files.md>), [hidden](<https://devfeed.tech/tags/hidden.md>), [include](<https://devfeed.tech/tags/include.md>), [zsh](<https://devfeed.tech/tags/zsh.md>)

## AI overview

By default, Zsh globs skip names beginning with a dot. Add the `(D)` qualifier to include hidden files and directories; it does not match the special `.` or `..` entries. This matters with recursive `**/` globs: `**/*.yml` can miss YAML files under `.github`, while `**/*.yml(D)` includes them. Leaving `(D)` off can also be useful: `**/*.py` skips a hidden virtual-environment directory such as `.venv`, whereas `**/*.py(D)` includes its files.

## Source excerpt

By default, Zsh globs skip hidden files and directories, meaning those with names starting with a dot. For example, in a project directory, * misses all the configuration files and directories: $ ls -d * README.rst generate_pigeon.py To include them, add the (D) glob qualifier, which stands for "dot files": $ ls ...