add grep config

* configure ack-like output with `git g`
* enable regex support
This commit is contained in:
Nick Nisi
2014-03-03 08:04:56 -06:00
parent 577e69e9b8
commit 02c0048a25

View File

@@ -91,6 +91,7 @@
aa = !git ls-files -d | xargs git rm && git ls-files -m -o --exclude-standard | xargs git add 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 # remove grep - Remove found files that are NOT under version control
rg = "!sh -c 'git ls-files --others --exclude-standard | grep $1 | xargs rm' -" rg = "!sh -c 'git ls-files --others --exclude-standard | grep $1 | xargs rm' -"
g = grep --break --heading --line-number
[color] [color]
diff = auto diff = auto
status = auto status = auto
@@ -134,3 +135,6 @@
enabled = true enabled = true
[gitsh] [gitsh]
defaultCommand = s defaultCommand = s
[grep]
extendRegexp = true
lineNumber = true