Skip to content
This repository has been archived by the owner on Mar 16, 2020. It is now read-only.

ben-z/ignoreme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo is archived. I use gitignore.io now:

Setup:

echo "function gi() { curl -sL https://www.gitignore.io/api/\$@ ;}" >> \
~/.bash_profile && source ~/.bash_profile

Usage:

gi node >> .gitignore

Below is the original Readme.

IgnoreMe

If you are like me, you'd do lots and lots of small projects to learn just about anything. Lots of projects means lots of boilerplates, and out of all the boilerplates, the one we have to create the most often is more or less the .gitignore file.

IgnoreMe makes the process of maintaining .gitignore files quick and easy.

Get Started

$ yarn global add ignoreme # or npm i -g ignoreme
$ ignoreme vim node macos
# 3 gitignore(s) added: vim, node, macos

Usage

To add ignores:

$ ignoreme add <language1, language2, editor1, ...>

To remove ignores:

$ ignoreme remove <language1, language2, editor1, ...>

To list ignores:

$ ignoreme list

Examples

To ignore all vim, node, and macos temporary files:

$ ignoreme add vim node macos
# 3 gitignore(s) added: vim, node, macos

$ ignoreme list
# 3 complete gitignore(s):
#   |-- macos
#   |-- node
#   |-- vim

To un-ignore node temporary files

$ ignoreme remove node
# 1 gitignore(s) removed: node

$ ignoreme list
# 2 complete gitignore(s):
#   |-- macos
#   |-- vim

Let's say you forgot that you have macos ignores...

$ ignoreme add macos
# 1 gitignore(s) already exist(s): macos

...or that you misspelt vim (to be improved)

$ ignoreme add vym
# 1 gitignore(s) not found: vym
# Please refer to https://github.com/github/gitignore for a list of available gitignores

Todo

This project is still WIP. Major things left to do:

  • ignoreme add
  • ignoreme remove
  • ignoreme list
  • avoid duplicate adds (recognize existing ignored files)
  • tests
  • a better UI (with colours and everything)
  • automatically suggest possible typo fixes

Contributing

Issues, PRs. You know the drill.

License

ISC