]> Sergey Matveev's repositories - dotfiles.git/blobdiff - zsh/.zsh/rc/010grep.zsh
ggj should autoopen quickfix
[dotfiles.git] / zsh / .zsh / rc / 010grep.zsh
index e2d979ea071a5e9b52ad06360b1a157314d235b2..d14c1ff6fc1e179b016efcdbf20b6a06d041cc48 100644 (file)
@@ -1,15 +1,3 @@
-GREP_ARGS=(
-    --devices=skip
-    --colour=always
-    --with-filename
-    --line-number
-    --dereference-recursive
-    --binary-files=without-match
-    --exclude-dir=.git
-    --exclude-dir=.tags
-)
-g() {
-    grep $GREP_ARGS $@ | less
-}
 alias -g G="| grep --colour=always"
 alias gg="git grep "
+alias ggj="GIT_EDITOR=\"$EDITOR -c copen\" git jump grep "