DEV Community

Discussion on: gitignore.io is great!

Collapse
 
waylonwalker profile image
Waylon Walker • Edited

I had no idea there was a cli, I always just use CURL. I generally use pretty similar .gitignore's depending on the type of project that I am working on.

I keep this one as a shell alias

alias ignore='curl https://www.gitignore.io/api/vim,node,data,emacs,python,pycharm,executable,sublimetext,visualstudio,visualstudiocode > .gitignore'
Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt • Edited

It's just a shell script, but working at function level.

I do this quite often.

gi macos,node > .gitignore 

You can't misspell, though. For example, it must be node not node.js or nodejs.

Collapse
 
titanhero profile image
Lex

You miss the ' ' in the alias, anyway cool.

Collapse
 
waylonwalker profile image
Waylon Walker

Thanks for the catch, fixed it