Browse Source

fix my-rgrep

pull/1/head
10sr 11 years ago
parent
commit
c61092dfba
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      bashrc
  2. +1
    -1
      emacs.el

+ 1
- 0
bashrc View File

@@ -284,6 +284,7 @@ then
complete -o bashdefault -o default -o nospace -F _git g 2>/dev/null \
|| complete -o default -o nospace -F _git g
fi
git svn --help >/dev/null 2>&1 && alias gsvn="git svn"
null type gitmemo && alias m=gitmemo

null type gitmemo && alias m=gitmemo


+ 1
- 1
emacs.el View File

@@ -1828,7 +1828,7 @@ if arg given, use that eshell buffer, otherwise make new eshell buffer."
(require 'grep)
(compilation-start (if (eq 0
(shell-command "git rev-parse --git-dir"))
(format "git --no-pager grep -nH -e '%s'"
(format "git --no-pager -c color.grep=false grep -nH -e '%s'"
word)
(if (executable-find "ag")
(format "ag --nocolor --nogroup --nopager '%s'"


Loading…
Cancel
Save