Skip to content

Instantly share code, notes, and snippets.

@colorqualia
Created December 25, 2013 03:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save colorqualia/8119866 to your computer and use it in GitHub Desktop.
Save colorqualia/8119866 to your computer and use it in GitHub Desktop.
PowerShell v3 script for gitignore.io.
#PowerShell v3 script
Function gitignore {
Param(
[Parameter(Mandatory=$true)]
[string[]]$list
)
$params = $list -join ","
invoke-WebRequest -Uri "http://gitignore.io/api/$params" | select -expandproperty content | out-file -FilePath $(join-path -path $pwd -ChildPath ".gitignore") -Encoding ascii
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment