From e9402092d4287376ddc6ad124dd527fe57ea33b3 Mon Sep 17 00:00:00 2001 From: Stefan Gaiselmann Date: Wed, 13 Jan 2021 09:33:39 +0100 Subject: [PATCH] Added "ignore" alias to git configuration. Based on https://docs.gitignore.io/install/command-line --- dot_gitconfig.tmpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dot_gitconfig.tmpl b/dot_gitconfig.tmpl index f286098..87deb7a 100644 --- a/dot_gitconfig.tmpl +++ b/dot_gitconfig.tmpl @@ -53,6 +53,10 @@ d = diff -w dc = diff -w --cached + # from https://www.toptal.com/developers/gitignore + # create .gitignore templates based on operationg systems, IDE, languages etc. + ignore = "!gi() { curl -sL https://www.toptal.com/developers/gitignore/api/$@ ;}; gi" + [core] editor = vim