Skip to content

Instantly share code, notes, and snippets.

@dcm
Created August 6, 2022 04:03
Show Gist options
  • Save dcm/399de7648705e8db2e60e9202969b28e to your computer and use it in GitHub Desktop.
Save dcm/399de7648705e8db2e60e9202969b28e to your computer and use it in GitHub Desktop.
Git alias to pull entries to be added to .gitignore based upon the topic (e.g. python, visualstudiocode, etc.)
#!/usr/bin/env bash
ARGS="$@";
if [ -z "$ARGS" ]; then ARGS=list; fi;
CARGS=$(echo "$ARGS" | sed -E "s/ +/,/g");
curl -sL "https://www.toptal.com/developers/gitignore/api/$CARGS";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment