add grep config
* configure ack-like output with `git g` * enable regex support
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user