-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 "