gi <project-types>... command to auto-generate standardized gitignore files based on a project's libraries and tools used.
function gi {
# clone gitingore project if not already present (this folder should be added to env/.gitignore)
## git clone --depth 1 git@github.com:github/gitignore.git
# accept 'types' as arguments 'gi java gradle ...'
# look these up in the current gitignore file
## (use awk to list types used in current file 'gi java gradle')
# grab the content from the gitignore/ project for types missing from the previous step
# insert content into gitignore file and updated 'gi ...' line (use sed)
# future: potentially infer types; have a refresh method
}
gi <project-types>...command to auto-generate standardized gitignore files based on a project's libraries and tools used.