<commit_before># gitignore.io

Create useful .gitignore files for your project

[![Build Status](https://travis-ci.org/joeblau/gitignore.io.png?branch=dev-v2)](https://travis-ci.org/joeblau/gitignore.io)
[![GitHub version](https://badge.fury.io/gh/joeblau%2Fgitignore.io.png)](http://badge.fury.io/gh/joeblau%2Fgitignore.io)
[![Dependencies Status](https://david-dm.org/joeblau/gitignore.io.png)](https://david-dm.org/joeblau/gitignore.io)
[![DevDependencies Status](https://david-dm.org/joeblau/gitignore.io/dev-status.png)](https://david-dm.org/joeblau/gitignore.io#info=devDependencies)

# Install Command Line

To run gitignore.io from your command line you need an active internet connection an environment function. You need to add a function to your environment that lets you access the gitignore.io API.

## Git
`#!/bin/bash`
```sh
$ git config --global alias.test '!gi() { curl -s https://www.gitignore.io/api/$@ ;}; gi'
```

## Linux
`#!/bin/bash`
```sh
$ echo "function gi() { curl -s https://www.gitignore.io/api/\$@ ;}" >> ~/.bashrc && source ~/.bashrc
```

`#!/bin/zsh`
```sh
$ echo "function gi() { curl -s https://www.gitignore.io/api/\$@ ;}" >> ~/.zshrc && source ~/.zshrc
```

## OSX
`#!/bin/bash`
```sh
$ echo "function gi() { curl -s https://www.gitignore.io/api/\$@ ;}" >> ~/.bash_profile && source ~/.bash_profile
```
`#!/bin/zsh`
```sh
$ echo "function gi() { curl -s https://www.gitignore.io/api/\$@ ;}" >> ~/.zshrc && source ~/.zshrc
```

## Windows
Create a PowerShell v3 Script
```posh
#For PowerShell v3
Function gi {<commit_msg>Updated documentation to use -L parameter on curl to follow redirects.<commit_after># gitignore.io

Create useful .gitignore files for your project

[![Build Status](https://travis-ci.org/joeblau/gitignore.io.png?branch=dev-v2)](https://travis-ci.org/joeblau/gitignore.io)
[![GitHub version](https://badge.fury.io/gh/joeblau%2Fgitignore.io.png)](http://badge.fury.io/gh/joeblau%2Fgitignore.io)
[![Dependencies Status](https://david-dm.org/joeblau/gitignore.io.png)](https://david-dm.org/joeblau/gitignore.io)
[![DevDependencies Status](https://david-dm.org/joeblau/gitignore.io/dev-status.png)](https://david-dm.org/joeblau/gitignore.io#info=devDependencies)

# Install Command Line

To run gitignore.io from your command line you need an active internet connection an environment function. You need to add a function to your environment that lets you access the gitignore.io API.

## Git
`#!/bin/bash`
```sh
$ git config --global alias.test '!gi() { curl -L -s https://www.gitignore.io/api/$@ ;}; gi'
```

## Linux
`#!/bin/bash`
```sh
$ echo "function gi() { curl -L -s https://www.gitignore.io/api/\$@ ;}" >> ~/.bashrc && source ~/.bashrc
```

`#!/bin/zsh`
```sh
$ echo "function gi() { curl -L -s https://www.gitignore.io/api/\$@ ;}" >> ~/.zshrc && source ~/.zshrc
```

## OSX
`#!/bin/bash`
```sh
$ echo "function gi() { curl -L -s https://www.gitignore.io/api/\$@ ;}" >> ~/.bash_profile && source ~/.bash_profile
```
`#!/bin/zsh`
```sh
$ echo "function gi() { curl -L -s https://www.gitignore.io/api/\$@ ;}" >> ~/.zshrc && source ~/.zshrc
```

## Windows
Create a PowerShell v3 Script
```posh
#For PowerShell v3
Function gi {
{'fraction_non_alphanumeric': 0.21311989956057753, 'fraction_numerical': 0.003138731952291274, 'mean_word_length': 4.0992, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, 'https://': 24, 'lorem ipsum': 0, 'www.': 10, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6551341', 'n_tokens_mistral': 1245, 'n_tokens_neox': 1186, 'n_words': 259}