Skip to content

Instantly share code, notes, and snippets.

@jerrywdlee
Last active December 24, 2017 07:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jerrywdlee/7d70e765c56cd151c0c13fb11d1bdb3a to your computer and use it in GitHub Desktop.
Save jerrywdlee/7d70e765c56cd151c0c13fb11d1bdb3a to your computer and use it in GitHub Desktop.
gitignore.sh
#!/bin/bash
# Insall:
# curl -L -s https://cdn.rawgit.com/jerrywdlee/7d70e765c56cd151c0c13fb11d1bdb3a/raw/b8df7028d7b317aaae113111d940d4b11d0e5e81/gi.sh > $HOME/.gi.sh
# echo "alias gi=\"bash \$HOME/.gi.sh\"" >> ~/.bash_profile && source ~/.bash_profile
# Usage:
# cd MYAPP && gi node rails
params=`echo $@ | tr ' ' ','`
# add most used os
params="windows,macos,linux,"$params
curl -L -s "https://www.gitignore.io/api/"$params > $PWD"/.gitignore"
echo ".gitignore File Created At:"
echo $PWD"/.gitignore"
# API See https://www.gitignore.io/docs#-install-command-line-git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment