]> Sergey Matveev's repositories - dotfiles.git/blob - zsh/.zsh/rc/010grep.zsh
Splitted zsh rc files
[dotfiles.git] / zsh / .zsh / rc / 010grep.zsh
1 GREP_ARGS=(
2     --devices=skip
3     --colour=always
4     --with-filename
5     --line-number
6     --dereference-recursive
7     --binary-files=without-match
8     --exclude-dir=.git
9     --exclude-dir=.tags
10 )
11 g() {
12     grep $GREP_ARGS $@ | less
13 }
14 alias -g G="| grep --colour=always"
15 alias gg="git grep "