From 02c0048a255db9ea0900cbee72d9afc4900603b2 Mon Sep 17 00:00:00 2001 From: Nick Nisi Date: Mon, 3 Mar 2014 08:04:56 -0600 Subject: [PATCH] add grep config * configure ack-like output with `git g` * enable regex support --- git/gitconfig.symlink | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/git/gitconfig.symlink b/git/gitconfig.symlink index ebb4242..ad31244 100644 --- a/git/gitconfig.symlink +++ b/git/gitconfig.symlink @@ -91,6 +91,7 @@ aa = !git ls-files -d | xargs git rm && git ls-files -m -o --exclude-standard | xargs git add # remove grep - Remove found files that are NOT under version control rg = "!sh -c 'git ls-files --others --exclude-standard | grep $1 | xargs rm' -" + g = grep --break --heading --line-number [color] diff = auto status = auto @@ -133,4 +134,7 @@ [rerere] enabled = true [gitsh] - defaultCommand = s + defaultCommand = s +[grep] + extendRegexp = true + lineNumber = true