List tracked top-level directories in a git repo, plus ..
gem install dorian-dir-and-selfAlso included in the aggregate gem:
gem install doriandir-and-selfRun dir-and-self -h for generated option details and dir-and-self -v for the installed version.
- Uses
git ls-files, ignores dot-prefixed paths, and prints only directories plus the current directory marker.
dir-and-self | xargs -n1 echo