I often need to download a gitignore when starting a project, so I made
a function that will get a gitignore for a given project from GitHub’s
collection.
This method supports exactly one arguement, and creates a .gitignore
in your working directory. It pulls from GitHub’s collection of
gitignore files.
This script does not handle adding multiple of the same gitignore. It
also assumes that you already working in the directory you want to place
the retrived gitignore content.
To add this to your shell. Append it to either your .zshrc or
.bashrc, depending on what shell you use.