Skip to content
This repository was archived by the owner on Jan 5, 2018. It is now read-only.

Lee-W/gi_extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

gi_extended

This repo has been deprecated.

This feature has been merged to git-extras as git ignore-io

This is a non-offical extension for the command gi in gitignore.io
The function of gi provide a quick access to various .gitignore on gitignore.io

This extension supports more functions than the original gi.

For more introduction in Chinese.
Please refer to my blog http://lee-w-blog.logdown.com/posts/253323-gitignoreio

Installation

Install

git clone https://github.com/Lee-W/gi_extended && cd gi_extended
sudo cp gi_extended.sh /usr/bin/gi

You would also need to comment out the gi function in your shell config(e.g. ~/.zshrc, ~/.bashrc) if you had set up that.

Uninstall

sudo rm /usr/bin/gi

USAGE

Read document for gi first for better knowing how this extension works.
Note that you don't need to export the gi wrote in the document.

This program create a ~/.gi_list file for quick access to the all supported types which is obtained from the original gi list.
You would need to run gi -u in your first use.
After that, every time this program is executed, it will update the list in background for next time use.

gi  <types>
    [-a| -e] <types>
    [-u| -t| -l| -L]

If multiple types are needed, you can seperate them with comma or space.
e.g. osx,vim osx vim

options function
-a [types] apeend new .gitignore content to .gitignore under the current directory
-e [types] export new .gitignore to the current directory (The old one will be replaced.)
-L print ~/.gi_list in alphabetical order
-l print ~/.gi_list in table format
-u update ~/.gi_list
-t show the last modified time of ~/.gi_list
-h show help

AUTHORS

Lee-W

LICENSE

MIT

About

A non-offical extension for the command gi in gitignore.io

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages