Last active
December 24, 2017 07:30
-
-
Save jerrywdlee/7d70e765c56cd151c0c13fb11d1bdb3a to your computer and use it in GitHub Desktop.
gitignore.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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