Skip to content

Instantly share code, notes, and snippets.

@eliasmalik
Created June 14, 2016 18:05
Show Gist options
  • Save eliasmalik/b06f230a0bfd75abacbdfffafdeb3481 to your computer and use it in GitHub Desktop.
Save eliasmalik/b06f230a0bfd75abacbdfffafdeb3481 to your computer and use it in GitHub Desktop.
Download Github gitignore and paste it into current directory
#!/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