Zsh: uncover hidden files in globs with (D) 0 ▲ Adam Johnson 1 hour ago · Tech · hide · 0 comments 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 -d *(D) .env .git .github .pre-commit-config.yaml .venv README.rst generate_pigeon.py (ls -d lists directories themselves, rather than their contents.) (D) never matches the special . and .. entries, so you don’t need to worry about them popping up in results. Recursive globs (D) matters most for recursive globs with **/, because without it, Zsh also skips hidden directories. For example, to find all YAML files in a repository: $ ls **/*.yml zsh: no matches found: **/*.yml That missed the GitHub configuration files within .github. Add (D) to find them: $ ls **/*.yml(D) .github/dependabot.yml .github/workflows/main.yml Sometimes skipping hidden directories is what you want,… No comments yet. Log in to reply on the Fediverse. Comments will appear here.