Created
June 14, 2016 18:05
-
-
Save eliasmalik/b06f230a0bfd75abacbdfffafdeb3481 to your computer and use it in GitHub Desktop.
Download Github gitignore and paste it into current directory
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
#!/usr/bin/env bash | |
function ggi { | |
domain="https://raw.githubusercontent.com" | |
path="/github/gitignore/master/${1^}.gitignore" | |
file=$(curl ${domain}${path}) | |
target=$(pwd)/.gitignore | |
touch ${target} | |
echo "$file" > ${target} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment